Remove ToString0[T] usage to fix golangci-lint

This commit is contained in:
世界 committed 2022-07-10 22:00:28 +08:00
1 parent 0ef2e330e3
commit 6048b1e270
24 files changed
+59 -99

No files matched your search

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