Fix unused codesignidentity warning in mac crafter
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 20 Jun 2024 10:30:57 +0000 (18:30 +0800)
committerClaudio Cambra <developer@claudiocambra.com>
Mon, 8 Jul 2024 07:41:45 +0000 (15:41 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
admin/osx/mac-crafter/Sources/main.swift

index e0c8372394af22df6539e3269d3d071662f9c380..8a586d1288596601e962e5737c172102f00213df 100644 (file)
@@ -55,7 +55,7 @@ struct MacCrafter: ParsableCommand {
     mutating func run() throws {
         print("Configuring build tooling.")
 
-        if let codeSignIdentity {
+        if codeSignIdentity != nil {
             guard commandExists("codesign") else {
                 throw MacCrafterError.environmentError("codesign not found, cannot proceed.")
             }