Disable unnecessary assertion

This commit is contained in:
Alexandre Archambault 2016-01-11 21:20:55 +01:00
parent 77fd840af9
commit 214e0f893e
1 changed files with 7 additions and 6 deletions

View File

@ -301,12 +301,13 @@ object Cache {
val res =
if (url.startsWith("file:/")) {
def filtered(s: String) =
s.stripPrefix("file:/").stripPrefix("//").stripSuffix("/")
assert(
filtered(url) == filtered(file.toURI.toString),
s"URL: ${filtered(url)}, file: ${filtered(file.toURI.toString)}"
)
// for debug purposes, flaky with URL-encoded chars anyway
// def filtered(s: String) =
// s.stripPrefix("file:/").stripPrefix("//").stripSuffix("/")
// assert(
// filtered(url) == filtered(file.toURI.toString),
// s"URL: ${filtered(url)}, file: ${filtered(file.toURI.toString)}"
// )
checkFileExists(file, url)
} else
cachePolicy match {