Skip to content

Commit c81e537

Browse files
committed
remove nested cache
1 parent 52a8c62 commit c81e537

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/problematic_variable_finder/problem_finder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class ProblemFinder
77
def find_problems_in_directory(path, remove_paths=[])
88
key = [path, remove_paths].inspect
99

10-
cache(key) do
1110
files = Dir.glob("#{path}/**/*.rb")
11+
1212
files.reject! do |f|
1313
filename = f
1414
filename = remove_paths.each do |path|
@@ -35,12 +35,12 @@ def find_problems_in_directory(path, remove_paths=[])
3535
directory_problems = {}
3636

3737
files.each do |f|
38+
puts f
3839
full_path, path, problems = find_file_problems(f, remove_paths)
3940
directory_problems[path] = [full_path, problems] if problems.any?
4041
end
4142

4243
directory_problems
43-
end
4444
end
4545

4646
def find_file_problems(f, remove_paths)

0 commit comments

Comments
 (0)