Skip to content

Commit

Permalink
Remove nil check on flag as they never can be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfrey committed Jun 25, 2020
1 parent fa3cdcc commit d177450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tk/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func exportCmd() *cli.Command {
}

name := buf.String()
if allowSubFolderCreation == nil || !*allowSubFolderCreation {
if !*createDirs {
name = strings.Replace(name, "/", "-", -1)
}
path := filepath.Join(to, name+"."+*extension)
Expand Down

0 comments on commit d177450

Please sign in to comment.