diff options
| -rw-r--r-- | app/finders/notes_finder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/finders/notes_finder.rb b/app/finders/notes_finder.rb index 83bf015488f..06d01245e90 100644 --- a/app/finders/notes_finder.rb +++ b/app/finders/notes_finder.rb @@ -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" |
