chore: remove semicolons
This commit is contained in:
@@ -25,7 +25,7 @@ public class CarReader {
|
|||||||
return NSImage(cgImage: bestImage.image, size: bestImage.size)
|
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() ?? [])
|
os_log(.debug, log: log, "[asset-car] available keys: %{public}@", catalog.allImageNames() ?? [])
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return imageName;
|
return imageName
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If exact name does not exist in catalog, search for a name that shares the same prefix.
|
/// If exact name does not exist in catalog, search for a name that shares the same prefix.
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ extension AppIcon {
|
|||||||
if let icon = appPlist["CFBundleIconFile"] as? String { // may be nil
|
if let icon = appPlist["CFBundleIconFile"] as? String { // may be nil
|
||||||
return [icon]
|
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.
|
/// 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.
|
/// Convert image to PNG and encode with base64 to be embeded in html output.
|
||||||
func asBase64() -> String {
|
func asBase64() -> String {
|
||||||
// appIcon = [self roundCorners:appIcon];
|
|
||||||
let imageData = tiffRepresentation!
|
let imageData = tiffRepresentation!
|
||||||
let imageRep = NSBitmapImageRep(data: imageData)!
|
let imageRep = NSBitmapImageRep(data: imageData)!
|
||||||
let imageDataPNG = imageRep.representation(using: .png, properties: [:])!
|
let imageDataPNG = imageRep.representation(using: .png, properties: [:])!
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ struct MetaInfo {
|
|||||||
|
|
||||||
switch self.UTI {
|
switch self.UTI {
|
||||||
case "com.apple.itunes.ipa", "com.opa334.trollstore.tipa", "dyn.ah62d4rv4ge81k4puqe":
|
case "com.apple.itunes.ipa", "com.opa334.trollstore.tipa", "dyn.ah62d4rv4ge81k4puqe":
|
||||||
self.type = FileType.IPA;
|
self.type = FileType.IPA
|
||||||
zipFile = ZipFile(self.url.path);
|
zipFile = ZipFile(self.url.path)
|
||||||
case "com.apple.xcode.archive":
|
case "com.apple.xcode.archive":
|
||||||
self.type = FileType.Archive;
|
self.type = FileType.Archive
|
||||||
effective = appPathForArchive(self.url);
|
effective = appPathForArchive(self.url)
|
||||||
case "com.apple.application-and-system-extension":
|
case "com.apple.application-and-system-extension":
|
||||||
self.type = FileType.Extension;
|
self.type = FileType.Extension
|
||||||
default:
|
default:
|
||||||
os_log(.error, log: log, "Unsupported file type: %{public}@", self.UTI)
|
os_log(.error, log: log, "Unsupported file type: %{public}@", self.UTI)
|
||||||
fatalError()
|
fatalError()
|
||||||
@@ -98,5 +98,5 @@ private func appPathForArchive(_ url: URL) -> URL? {
|
|||||||
return x.first
|
return x.first
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil;
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ extension PreviewGenerator {
|
|||||||
os_log(.error, log: log, "No invalidity date in '%{public}@' certificate, dictionary = %{public}@", subject, innerDict)
|
os_log(.error, log: log, "No invalidity date in '%{public}@' certificate, dictionary = %{public}@", subject, innerDict)
|
||||||
return nil
|
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.
|
/// Process list of all certificates. Return a two column table with subject and expiration date.
|
||||||
|
|||||||
@@ -224,9 +224,9 @@ private func listZip(_ path: String) -> [ZipEntry] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
guard let endRecord = findCentralDirectory(fp), endRecord.sizeOfCentralDirectory > 0 else {
|
guard let endRecord = findCentralDirectory(fp), endRecord.sizeOfCentralDirectory > 0 else {
|
||||||
return [];
|
return []
|
||||||
}
|
}
|
||||||
return listDirectoryEntries(fp, endRecord);
|
return listDirectoryEntries(fp, endRecord)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Find signature for central directory.
|
/// Find signature for central directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user