Skip to content

Commit e379d72

Browse files
committed
fix: suspect or
1 parent 60e6cf6 commit e379d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func InitArgv() {
7373
FORMATTER_CHAR = DEFAULT_INDENT_CHAR
7474
fmt.Printf("No output indent char specified, use the default value: `%s`\n", FORMATTER_CHAR)
7575
} else {
76-
if indentChar != "\t" || indentChar != " " || indentChar != "\\s" {
76+
if !(indentChar == "\t" || indentChar == " " || indentChar == "\\s") {
7777
indentChar = DEFAULT_INDENT_CHAR
7878
fmt.Printf("Specify the indent char not support, use the default value: `%s`\n", DEFAULT_INDENT_CHAR)
7979
}

0 commit comments

Comments
 (0)