File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ module TwoFer
1616
1717 class Analyze < ExerciseAnalyzer
1818 include Mandate
19- include SA ::InlineHelpers
2019
2120 def analyze!
2221 #target_method.pry
@@ -52,7 +51,7 @@ def analyze!
5251 check_for_conditional_on_default_argument!
5352
5453 # Sometimes, rather than setting a variable, people reassign the input param e.g.
55- # use name ||= "you"
54+ # name ||= "you"
5655 check_for_reassigned_parameter!
5756
5857 # Sometimes people specify the names (if name == "Alice" ...). If we
@@ -116,8 +115,6 @@ def check_for_correct_solution_without_string_interpolaton!
116115 return unless solution . default_argument_is_optimal?
117116 return unless solution . one_line_solution?
118117
119- loc = SA ::Helpers . extract_first_line_from_method ( solution . target_method )
120-
121118 # In the case of:
122119 # "One for " + name + ", one for me."
123120 approve_if_implicit_return! ( :string_building ) if solution . uses_string_building?
You can’t perform that action at this time.
0 commit comments