Commit 8df1b131 authored by James Lopez's avatar James Lopez
Browse files

use find instead of reject in avatar export file

parent e39134bb79a0
...@@ -19,7 +19,7 @@ def restore ...@@ -19,7 +19,7 @@ def restore
private private
def avatar_export_file def avatar_export_file
@avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].reject { |f| }.first @avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].find { |f| File.file?(f) }
end end
def avatar_export_path def avatar_export_path
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment