Skip to content

Commit

Permalink
chore: Eliminate variable only used once
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Oct 18, 2022
1 parent efcbf6b commit e68faf3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ func newConfigFile(bds *xdg.BaseDirectorySpecification) ConfigFile {
chezmoi.EntryTypeDirs | chezmoi.EntryTypeFiles | chezmoi.EntryTypeSymlinks | chezmoi.EntryTypeEncrypted,
),
},
Format: defaultWriteDataFormat,
Format: writeDataFormatJSON,
Git: gitCmdConfig{
Command: "git",
},
Expand Down
2 changes: 0 additions & 2 deletions pkg/cmd/dataformat.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const (

writeDataFormatJSON writeDataFormat = "json"
writeDataFormatYAML writeDataFormat = "yaml"

defaultWriteDataFormat = writeDataFormatJSON
)

var readDataFormatFlagCompletionFunc = chezmoi.FlagCompletionFunc([]string{
Expand Down

0 comments on commit e68faf3

Please sign in to comment.