From 9394674b63568ec2bb1a645b2af78bbfa7a04997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 25 Jul 2022 16:03:21 +0800 Subject: [PATCH] Fix format command --- cmd/sing-box/cmd_format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)