Skip to content

Commit 2c4e9de

Browse files
authored
Fix: Missing a nil check at StableDiffusionCLI (#138)
1 parent 827d017 commit 2c4e9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/StableDiffusionCLI/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ struct StableDiffusionSample: ParsableCommand {
205205
name += ".\(sample)"
206206
}
207207

208-
if image != "none" {
208+
if image != nil {
209209
name += ".str\(Int(strength * 100))"
210210
}
211211

0 commit comments

Comments
 (0)