change to a let

Co-authored-by: Stefan-Hintz <github@corbusierhaus.de>
pull/19/head
dec2-anon 2 years ago committed by GitHub
parent 2c41969942
commit d735ad0d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -145,7 +145,7 @@ struct StableDiffusionSample: ParsableCommand {
}
func imageName(_ sample: Int, step: Int? = nil) -> String {
var fileCharLimit: Int = 75
let fileCharLimit = 75
var name = prompt.prefix(fileCharLimit).replacingOccurrences(of: " ", with: "_")
if imageCount != 1 {
name += ".\(sample)"

Loading…
Cancel
Save