Remove ToString0[T] usage to fix golangci-lint

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

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)