Skip to content

Commit 3e242eb

Browse files
committed
Fix next for nil/empty seqs
Signed-off-by: James Hamlin <jfhamlin@gmail.com>
1 parent 2522e18 commit 3e242eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/lang/seq.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func Next(x interface{}) ISeq {
3232
}
3333

3434
s := Seq(x)
35-
if s == nil {
36-
return emptyList
35+
if IsNil(s) {
36+
return nil
3737
}
3838
return s.Next()
3939
}

0 commit comments

Comments
 (0)