Commit b5b56588 authored by Patrick Derichs's avatar Patrick Derichs

Separate conditions to increase readability

parent 932a9a0c
......@@ -36,7 +36,8 @@ class NotesFinder
target_id = @params[:target_id]
target_iid = @params[:target_iid]
return @target = nil unless target_type && (target_id || target_iid)
return @target = nil unless target_type
return @target = nil unless (target_id || target_iid)
@target =
if target_type == "commit"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment