Commit ccd8b3a8 authored by Stan Hu's avatar Stan Hu

Remove duplicate code

This was added in !4860, but somehow the code was was already present in
9c000451, causing https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/56081024
to fail.
parent bafc2305
......@@ -68,14 +68,6 @@ module Gitlab
nil
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
def try_megabytes_to_bytes(size)
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