Fix format command

This commit is contained in:
世界 2022-07-25 16:03:21 +08:00
parent 146008a631
commit 9394674b63
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -45,7 +45,7 @@ func formatConfiguration(cmd *cobra.Command, args []string) {
os.Stdout.WriteString(buffer.String() + "\n") os.Stdout.WriteString(buffer.String() + "\n")
return return
} }
if !bytes.Equal(configContent, buffer.Bytes()) { if bytes.Equal(configContent, buffer.Bytes()) {
return return
} }
output, err := os.Create(configPath) output, err := os.Create(configPath)