Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
9f81a0b7dbb0
Commit
8df1b131
authored
Sep 11, 2018
by
James Lopez
Browse files
use find instead of reject in avatar export file
parent
e39134bb79a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gitlab/import_export/avatar_restorer.rb
View file @
9f81a0b7
...
...
@@ -19,7 +19,7 @@ def restore
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment