Skip to content

Commit 4da7092

Browse files
committed
Avoid nil error
1 parent 9fc29f8 commit 4da7092

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/typeprof/lsp/server.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def each_core(path)
134134
def aggregate_each_core(path)
135135
ret = []
136136
each_core(path) do |core|
137-
ret.concat(yield(core))
137+
r = yield(core)
138+
ret.concat(r) if r
138139
end
139140
ret
140141
end

0 commit comments

Comments
 (0)