Skip to content
Snippets Groups Projects
Commit 611f3ad2 authored by Timothy Andrew's avatar Timothy Andrew
Browse files

Fix rubocop complaints.

parent abd8ecca
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -50,4 +50,4 @@ module API
end
end
end
end
\ No newline at end of file
end
Loading
Loading
@@ -132,7 +132,7 @@ module API
if params[:labels].present?
params[:labels].split(',').each do |label_name|
label = user_project.labels.create_with(
color: Label::DEFAULT_COLOR).find_or_initialize_by(
color: Label::DEFAULT_COLOR).find_or_initialize_by(
title: label_name.strip)
 
if label.invalid?
Loading
Loading
@@ -274,9 +274,9 @@ module API
bad_request!('Bad file path') unless file_path.start_with?(uploads_path)
 
UploadedFile.new(
file_path,
params["#{field}.name"],
params["#{field}.type"] || 'application/octet-stream',
file_path,
params["#{field}.name"],
params["#{field}.type"] || 'application/octet-stream',
)
end
 
Loading
Loading
@@ -288,11 +288,11 @@ module API
 
# Support download acceleration
case headers['X-Sendfile-Type']
when 'X-Sendfile'
header['X-Sendfile'] = path
body
else
file FileStreamer.new(path)
when 'X-Sendfile'
header['X-Sendfile'] = path
body
else
file FileStreamer.new(path)
end
end
 
Loading
Loading
@@ -348,4 +348,4 @@ module API
end
end
end
end
\ No newline at end of file
end
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