From fc349551e39d4b1203a3743a76ac953686d49e07 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Wed, 15 Dec 2021 21:17:48 +0900 Subject: Use golangci-lint --- compiler/parser/parser.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'compiler/parser/parser.go') diff --git a/compiler/parser/parser.go b/compiler/parser/parser.go index fd85fab..3706525 100644 --- a/compiler/parser/parser.go +++ b/compiler/parser/parser.go @@ -446,10 +446,7 @@ func genAnyCharAST() CPTree { } func isValidOrder(from, to rune) bool { - if from <= to { - return true - } - return false + return from <= to } func genConcatNode(cs ...CPTree) CPTree { -- cgit v1.2.3