Commit 9f81a0b7 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 @@
private
def avatar_export_file
@avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].reject { |f| File.directory?(f) }.first
@avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].find { |f| File.file?(f) }
end
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