aboutsummaryrefslogtreecommitdiff
path: root/compiler/parser/parser.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-12-15 21:17:48 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-12-15 22:35:54 +0900
commitfc349551e39d4b1203a3743a76ac953686d49e07 (patch)
tree19507233ddad5ef6ef5b7c1c8f178c0fb6dfc10a /compiler/parser/parser.go
parentUpdate CHANGELOG (diff)
downloadtre-fc349551e39d4b1203a3743a76ac953686d49e07.tar.gz
tre-fc349551e39d4b1203a3743a76ac953686d49e07.tar.xz
Use golangci-lint
Diffstat (limited to 'compiler/parser/parser.go')
-rw-r--r--compiler/parser/parser.go5
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 {