lib/trackler/track.rb in trackler-2.1.0.39 vs lib/trackler/track.rb in trackler-2.1.0.40
- old
+ new
@@ -127,14 +127,10 @@
end
private
def track_hints_filename
- current = [File.join('docs', 'EXERCISE_README_INSERT.md')]
- deprecated = [File.join('exercises', 'TRACK_HINTS.md'), 'SETUP.md']
-
- filepaths = (current + deprecated).map { |name| dir.join(name) }
- filepaths.find(-> { '' }) { |filepath| File.exist? filepath }
+ File.join(dir, 'docs', 'EXERCISE_README_INSERT.md')
end
def active_slugs
(config["exercises"] || []).map { |ex| ex["slug"] }
end