Browse Source

fix: fix reading dates out of source directories

Lukasz Badura 5 months ago
parent
commit
56b4760c58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/fotos/source_directory.rb

+ 1 - 1
lib/fotos/source_directory.rb

@@ -16,7 +16,7 @@ module Fotos
         Date.strptime(d, DATE_FORMAT)
         Date.strptime(d, DATE_FORMAT)
       rescue Date::Error
       rescue Date::Error
         next
         next
-      end.compact!
+      end.compact
     end
     end
 
 
     def files_by_date
     def files_by_date