Skip to content

Commit 4433e67

Browse files
committed
Remove unnecessary context default
1 parent 23ae7cf commit 4433e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/irb/ruby-lex.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def set_auto_indent(context)
219219
end
220220
end
221221

222-
def check_state(code, tokens = nil, context: nil)
222+
def check_state(code, tokens = nil, context:)
223223
tokens = self.class.ripper_lex_without_warning(code, context: context) unless tokens
224224
ltype = process_literal_type(tokens)
225225
indent = process_nesting_level(tokens)
@@ -790,7 +790,7 @@ def process_literal_type(tokens)
790790
end
791791
end
792792

793-
def check_termination_in_prev_line(code, context: nil)
793+
def check_termination_in_prev_line(code, context:)
794794
tokens = self.class.ripper_lex_without_warning(code, context: context)
795795
past_first_newline = false
796796
index = tokens.rindex do |t|

0 commit comments

Comments
 (0)