diff options
Diffstat (limited to 'rubocop/cop/gitlab/mark_used_feature_flags.rb')
-rw-r--r-- | rubocop/cop/gitlab/mark_used_feature_flags.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/gitlab/mark_used_feature_flags.rb b/rubocop/cop/gitlab/mark_used_feature_flags.rb index 23de0644385..d1722a47c8a 100644 --- a/rubocop/cop/gitlab/mark_used_feature_flags.rb +++ b/rubocop/cop/gitlab/mark_used_feature_flags.rb @@ -59,7 +59,7 @@ module RuboCop def on_casgn(node) _, lhs_name, rhs = *node - save_used_feature_flag(rhs.value) if lhs_name == :FEATURE_FLAG + save_used_feature_flag(rhs.value) if lhs_name.to_s.end_with?('FEATURE_FLAG') end def on_send(node) |