Compare commits

..

No commits in common. "3d361845abc2366e659d612f7d4d9f6d51f1e865" and "31923974a6317664e20886cd03c741dd7483e703" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ extension URL {
absoluteString.components(separatedBy: "/").forEach { part in absoluteString.components(separatedBy: "/").forEach { part in
if part == ".." { if part == ".." {
if !components.isEmpty { if !components.isEmpty {
_ = components.popLast() _ = components.dropLast()
} else { } else {
components.append("..") components.append("..")
} }

View File

@ -338,7 +338,7 @@ final class GenerationResultsHandler {
} }
private func markImageAsMissing(path: String, source: String) { private func markImageAsMissing(path: String, source: String) {
images.missing[path] = source images.missing[source] = path
} }
private func requireImage(at destination: String, generatedFrom source: String, requiredBy path: String, quality: Float, width: Int, height: Int?, alwaysGenerate: Bool) -> NSSize { private func requireImage(at destination: String, generatedFrom source: String, requiredBy path: String, quality: Float, width: Int, height: Int?, alwaysGenerate: Bool) -> NSSize {