Skip to content

Commit 61bfab0

Browse files
committed
Read file not lines
1 parent 4521ff1 commit 61bfab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/analyze_solution.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class AnalyzeSolution
44
initialize_with :exercise_slug, :path
55

66
def call
7-
code_to_analyze = File.readlines(path / FILENAMES[exercise_slug])
7+
code_to_analyze = File.read(path / FILENAMES[exercise_slug])
88

99
classified_exercise = exercise_slug.tr('-', '_').classify
1010
results = "#{classified_exercise}::Analyze".constantize.(code_to_analyze)

0 commit comments

Comments
 (0)