diff --git a/AssetCarReader/AssetCarReader.swift b/AssetCarReader/AssetCarReader.swift index 1ed660a..05bc185 100644 --- a/AssetCarReader/AssetCarReader.swift +++ b/AssetCarReader/AssetCarReader.swift @@ -25,7 +25,7 @@ public class CarReader { return NSImage(cgImage: bestImage.image, size: bestImage.size) } } - return nil; + return nil } @@ -44,7 +44,7 @@ public class CarReader { os_log(.debug, log: log, "[asset-car] available keys: %{public}@", catalog.allImageNames() ?? []) return nil } - return imageName; + return imageName } /// If exact name does not exist in catalog, search for a name that shares the same prefix. diff --git a/src/AppIcon.swift b/src/AppIcon.swift index 0ac9caa..ba008fb 100644 --- a/src/AppIcon.swift +++ b/src/AppIcon.swift @@ -89,7 +89,7 @@ extension AppIcon { if let icon = appPlist["CFBundleIconFile"] as? String { // may be nil return [icon] } - return [] // [self sortedByResolution:icons]; + return [] } /// Given a filename, search Bundle or Filesystem for files that match. Select the filename with the highest resolution. @@ -218,7 +218,6 @@ extension NSImage { /// Convert image to PNG and encode with base64 to be embeded in html output. func asBase64() -> String { - // appIcon = [self roundCorners:appIcon]; let imageData = tiffRepresentation! let imageRep = NSBitmapImageRep(data: imageData)! let imageDataPNG = imageRep.representation(using: .png, properties: [:])! diff --git a/src/MetaInfo.swift b/src/MetaInfo.swift index 5e10479..65d9a84 100644 --- a/src/MetaInfo.swift +++ b/src/MetaInfo.swift @@ -32,13 +32,13 @@ struct MetaInfo { switch self.UTI { case "com.apple.itunes.ipa", "com.opa334.trollstore.tipa", "dyn.ah62d4rv4ge81k4puqe": - self.type = FileType.IPA; - zipFile = ZipFile(self.url.path); + self.type = FileType.IPA + zipFile = ZipFile(self.url.path) case "com.apple.xcode.archive": - self.type = FileType.Archive; - effective = appPathForArchive(self.url); + self.type = FileType.Archive + effective = appPathForArchive(self.url) case "com.apple.application-and-system-extension": - self.type = FileType.Extension; + self.type = FileType.Extension default: os_log(.error, log: log, "Unsupported file type: %{public}@", self.UTI) fatalError() @@ -98,5 +98,5 @@ private func appPathForArchive(_ url: URL) -> URL? { return x.first } } - return nil; + return nil } diff --git a/src/Preview+Provisioning.swift b/src/Preview+Provisioning.swift index 6403831..e1cee9e 100644 --- a/src/Preview+Provisioning.swift +++ b/src/Preview+Provisioning.swift @@ -48,7 +48,7 @@ extension PreviewGenerator { os_log(.error, log: log, "No invalidity date in '%{public}@' certificate, dictionary = %{public}@", subject, innerDict) return nil } - return Date.parseAny(dateString); + return Date.parseAny(dateString) } /// Process list of all certificates. Return a two column table with subject and expiration date. diff --git a/src/Zip.swift b/src/Zip.swift index 3b10c35..11f1729 100644 --- a/src/Zip.swift +++ b/src/Zip.swift @@ -224,9 +224,9 @@ private func listZip(_ path: String) -> [ZipEntry] { } guard let endRecord = findCentralDirectory(fp), endRecord.sizeOfCentralDirectory > 0 else { - return []; + return [] } - return listDirectoryEntries(fp, endRecord); + return listDirectoryEntries(fp, endRecord) } /// Find signature for central directory.