Skip to content

Commit

Permalink
#234 Fixed issue found by golang linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzhang6222 committed May 22, 2020
1 parent 2980a3b commit ea9149c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/std_seq.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ func stdSeq() rel.Attr {
panic(fmt.Errorf("split: unsupported args: %s, %s", delimiter, subject))
}),
createNestedFuncAttr("join", 2, func(args ...rel.Value) rel.Value {
joiner, subject := args[0], args[1]
switch subject := subject.(type) {
joiner, subjectParam := args[0], args[1]
switch subject := subjectParam.(type) {
case rel.Array:
switch subject.Values()[0].(type) {
case rel.String:
Expand All @@ -206,7 +206,7 @@ func stdSeq() rel.Attr {
}
}

panic(fmt.Errorf("join: unsupported args: %s, %s", joiner, subject))
panic(fmt.Errorf("join: unsupported args: %s, %s", joiner, subjectParam))
}),
)
}
Expand Down

0 comments on commit ea9149c

Please sign in to comment.