summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-06-15 09:05:45 +0200
committerPatrick Derichs <pderichs@gitlab.com>2019-06-19 10:56:55 +0200
commit9079085fe7b03a330a50ddee638990af42b22bda (patch)
treed70dcf25f94ad42189f80a8085dd3919ba4d33a1
parentb5b5658868a8aaac0dc340f6d7c9a14842cab2e5 (diff)
downloadgitlab-ce-9079085fe7b03a330a50ddee638990af42b22bda.tar.gz
Remove unneeded parentheses
-rw-r--r--app/finders/notes_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/notes_finder.rb b/app/finders/notes_finder.rb
index 06d01245e90..8f610d7dddb 100644
--- a/app/finders/notes_finder.rb
+++ b/app/finders/notes_finder.rb
@@ -37,7 +37,7 @@ class NotesFinder
target_iid = @params[:target_iid]
return @target = nil unless target_type
- return @target = nil unless (target_id || target_iid)
+ return @target = nil unless target_id || target_iid
@target =
if target_type == "commit"