Skip to content

Commit

Permalink
fix: use include?
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankaraffa authored Dec 9, 2024
1 parent 7fad16b commit 5b5de4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ changed_pt_files.each do |file|
# `// Dangerfile ignore: <reason for exclusion>`
# OR
# `# Dangerfile ignore: <reason for exclusion>`
file_lines = file_lines.reject { |line| line.contains('// Dangerfile ignore') || line.contains('# Dangerfile ignore') }
file_lines = file_lines.reject { |line| line.include?('// Dangerfile ignore') || line.include?('# Dangerfile ignore') }

# Raise error if policy is deprecated but missing deprecated field in info() block
test = policy_missing_deprecated_field?(file, file_parsed); failures << test if test
Expand Down

0 comments on commit 5b5de4f

Please sign in to comment.