Remove redundant return

This commit is contained in:
Lin Jen-Shin 2016-07-11 19:06:40 +08:00
parent df5b78676e
commit 1f733a95c7

View file

@ -16,7 +16,7 @@ class Projects::ArtifactsController < Projects::ApplicationController
directory = params[:path] ? "#{params[:path]}/" : ''
@entry = build.artifacts_metadata_entry(directory)
return render_404 unless @entry.exists?
render_404 unless @entry.exists?
end
def file