chore: remove semicolons

This commit is contained in:
relikd
2025-11-05 18:02:39 +01:00
parent fb8fa41dd0
commit 36e30a1fdf
5 changed files with 12 additions and 13 deletions

View File

@@ -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.

View File

@@ -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: [:])!

View File

@@ -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
} }

View File

@@ -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.

View File

@@ -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.