Skip to content

Commit ef8deda

Browse files
committed
Remove unused locs
1 parent 0b34f7a commit ef8deda

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/analyzers/two_fer/analyze.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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?

0 commit comments

Comments
 (0)