Skip to content
Snippets Groups Projects
Commit 98c0eb46 authored by tiagonbotelho's avatar tiagonbotelho
Browse files

test for nil params :file_name

parent 893f3f28
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -38,7 +38,7 @@ class Projects::BlobController < Projects::ApplicationController
end
 
def update
unless params[:file_name].empty?
unless params[:file_name].nil? || params[:file_name].empty?
@previous_path = @path
@path = params[:file_name]
@commit_params[:file_path] = @path
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment