summaryrefslogtreecommitdiff
path: root/app/models/ref_matcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ref_matcher.rb')
-rw-r--r--app/models/ref_matcher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ref_matcher.rb b/app/models/ref_matcher.rb
index fa7d2c0f06c..991b171bc7c 100644
--- a/app/models/ref_matcher.rb
+++ b/app/models/ref_matcher.rb
@@ -20,7 +20,7 @@ class RefMatcher
# Checks if this protected ref contains a wildcard
def wildcard?
- @ref_name_or_pattern && @ref_name_or_pattern.include?('*')
+ @ref_name_or_pattern&.include?('*')
end
protected