Skip to content

Commit 294b3a3

Browse files
committed
feat: allow empty delimiter argument
1 parent 205d1a2 commit 294b3a3

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)