diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-15 21:17:48 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-15 22:35:54 +0900 |
commit | fc349551e39d4b1203a3743a76ac953686d49e07 (patch) | |
tree | 19507233ddad5ef6ef5b7c1c8f178c0fb6dfc10a /compiler/parser/parser.go | |
parent | Update CHANGELOG (diff) | |
download | tre-fc349551e39d4b1203a3743a76ac953686d49e07.tar.gz tre-fc349551e39d4b1203a3743a76ac953686d49e07.tar.xz |
Use golangci-lint
Diffstat (limited to '')
-rw-r--r-- | compiler/parser/parser.go | 5 |
1 files changed, 1 insertions, 4 deletions
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 { |