Skip to content

Commit c7c7def

Browse files
committed
Remove unnecessary var
1 parent 803333f commit c7c7def

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/language_server/project/parser.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def initialize(src, path)
2727

2828
@path = path
2929
@result = Result.new
30-
@current_constants = []
3130
end
3231

3332
private
@@ -42,9 +41,7 @@ def lineno
4241
end
4342

4443
def on_const(name)
45-
build_node(Constant, namespaces: [], name: name, value: nil).tap do |c|
46-
@current_constants.push(c)
47-
end
44+
build_node(Constant, namespaces: [], name: name, value: nil)
4845
end
4946

5047
def on_int(value)

0 commit comments

Comments
 (0)