Skip to content

Commit ac8db76

Browse files
authored
Merge pull request #4 from Splode/feature/support-empty-delimiter
feat: allow empty delimiter argument
2 parents 205d1a2 + 294b3a3 commit ac8db76

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cmd/fname/fname.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func main() {
4343

4444
var (
4545
casing string = "lower"
46-
delimiter string
46+
delimiter string = "-"
4747
help bool
4848
ver bool
4949
quantity int = 1
@@ -80,9 +80,7 @@ func main() {
8080
}
8181
opts = append(opts, fname.WithCasing(c))
8282

83-
if delimiter != "" {
84-
opts = append(opts, fname.WithDelimiter(delimiter))
85-
}
83+
opts = append(opts, fname.WithDelimiter(delimiter))
8684
if seed != -1 {
8785
opts = append(opts, fname.WithSeed(seed))
8886
}

0 commit comments

Comments
 (0)