diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-24 14:11:10 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-24 14:11:10 -0600 |
commit | 705f15587bfbfde33ae10f7820e66370a054ad5a (patch) | |
tree | b6fe81fe6302e6f5fe095e1e8d9d59f7419f3ed5 /app/services/files/multi_service.rb | |
parent | 38a7a5f4bc80265ba84bd49e951becfa54745518 (diff) | |
download | gitlab-ce-705f15587bfbfde33ae10f7820e66370a054ad5a.tar.gz |
Fix specdm-fix-web-edit-new-lines
Diffstat (limited to 'app/services/files/multi_service.rb')
-rw-r--r-- | app/services/files/multi_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/files/multi_service.rb b/app/services/files/multi_service.rb index ba99af00e96..0609c6219e7 100644 --- a/app/services/files/multi_service.rb +++ b/app/services/files/multi_service.rb @@ -21,7 +21,7 @@ module Files def validate super - + params[:actions].each_with_index do |action, index| if ACTIONS.include?(action[:action].to_s) action[:action] = action[:action].to_sym @@ -102,13 +102,13 @@ module Files raise_error("Your changes could not be committed because a file with the name `#{action[:file_path]}` already exists.") end - if action[:content].empty? + if action[:content].nil? raise_error("You must provide content.") end end def validate_update(action) - if action[:content].empty? + if action[:content].nil? raise_error("You must provide content.") end |