diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-24 09:38:44 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-24 09:55:01 -0600 |
commit | c72e71552209aae964e5aa931d435f7e1164e5d1 (patch) | |
tree | 2e7a17e1216e8286ba885f9d0517330b9148b879 /lib | |
parent | a530e9da3580e05a171b3ba0a3f4408afc000b10 (diff) | |
download | gitlab-ce-c72e71552209aae964e5aa931d435f7e1164e5d1.tar.gz |
Raise error when no content is provided
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/index.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/git/index.rb b/lib/gitlab/git/index.rb index 546696e4bd1..af1744c9c46 100644 --- a/lib/gitlab/git/index.rb +++ b/lib/gitlab/git/index.rb @@ -106,8 +106,6 @@ module Gitlab def add_blob(options, mode: nil) content = options[:content] - return unless content - content = Base64.decode64(content) if options[:encoding] == 'base64' detect = CharlockHolmes::EncodingDetector.new.detect(content) |