diff options
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 |