Skip to content

Commit

Permalink
Fix: Missing a nil check at StableDiffusionCLI (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucas authored Mar 4, 2023
1 parent 827d017 commit 2c4e9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift/StableDiffusionCLI/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ struct StableDiffusionSample: ParsableCommand {
name += ".\(sample)"
}

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

Expand Down

0 comments on commit 2c4e9de

Please sign in to comment.