diff --git a/cmd/sing-box/cmd_format.go b/cmd/sing-box/cmd_format.go index ac778afb..be56dc8e 100644 --- a/cmd/sing-box/cmd_format.go +++ b/cmd/sing-box/cmd_format.go @@ -45,7 +45,7 @@ func formatConfiguration(cmd *cobra.Command, args []string) { os.Stdout.WriteString(buffer.String() + "\n") return } - if !bytes.Equal(configContent, buffer.Bytes()) { + if bytes.Equal(configContent, buffer.Bytes()) { return } output, err := os.Create(configPath)