Fix unused codesignidentity warning in mac crafter

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-06-20 18:30:57 +08:00 committed by Claudio Cambra
parent 495c85905e
commit c47435150b

View 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.")
}