Commit 92d4f7d6 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'sh-fix-duplicate-code' into 'master'

Remove duplicate code

See merge request gitlab-org/gitlab-ee!4871
parents 7e56ff3c ccd8b3a8
...@@ -68,14 +68,6 @@ module Gitlab ...@@ -68,14 +68,6 @@ module Gitlab
nil nil
end end
# Used in EE
# Accepts either an Array or a String and returns an array
def ensure_array_from_string(string_or_array)
return string_or_array if string_or_array.is_a?(Array)
string_or_array.split(',').map(&:strip)
end
# EE below # EE below
def try_megabytes_to_bytes(size) def try_megabytes_to_bytes(size)
Integer(size).megabytes Integer(size).megabytes
......
Markdown is supported
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