Separate conditions to increase readability
This commit is contained in:
parent
932a9a0c77
commit
b5b5658868
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue