Commit 98dfb9f8 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in lib/gitlab/utils.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ff1c0b2a
...@@ -73,7 +73,6 @@ module Gitlab ...@@ -73,7 +73,6 @@ module Gitlab
nil nil
end end
<<<<<<< HEAD
# EE below # EE below
def try_megabytes_to_bytes(size) def try_megabytes_to_bytes(size)
Integer(size).megabytes Integer(size).megabytes
...@@ -81,16 +80,11 @@ module Gitlab ...@@ -81,16 +80,11 @@ module Gitlab
size size
end end
=======
>>>>>>> upstream/master
def bytes_to_megabytes(bytes) def bytes_to_megabytes(bytes)
bytes.to_f / Numeric::MEGABYTE bytes.to_f / Numeric::MEGABYTE
end end
<<<<<<< HEAD
=======
# Used in EE # Used in EE
>>>>>>> upstream/master
# Accepts either an Array or a String and returns an array # Accepts either an Array or a String and returns an array
def ensure_array_from_string(string_or_array) def ensure_array_from_string(string_or_array)
return string_or_array if string_or_array.is_a?(Array) return string_or_array if string_or_array.is_a?(Array)
......
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