Skip to content

Commit

Permalink
S1008: refactored lisp part a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasYOY committed Jul 4, 2024
1 parent d8eac1b commit 1806bb5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions simple/s1008/s1008.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ var (
(Binding "fret" (ReturnStmt _))
`)
checkReturnValue = pattern.MustParse(`
(Or
(ReturnStmt
(List
ret@(Builtin (Or "true" "false"))
tail@(Any)))
(ReturnStmt
[ret@(Builtin (Or "true" "false"))]))
(ReturnStmt
(List
ret@(Builtin (Or "true" "false"))
tail@(Any)))
`)
)

Expand Down

0 comments on commit 1806bb5

Please sign in to comment.