Use && rather than and.

This commit is contained in:
Aaron Klaassen 2019-09-30 13:40:17 -05:00
parent d086f84434
commit 393c0d7eb9

View file

@ -32,7 +32,7 @@ end
message = ARGV.join(' ')
coms = github.issue_comments(repo, pr["number"])
duplicate = coms.find { |c| c["user"]["login"] == 'github-actions[bot]' and c["body"] == message }
duplicate = coms.find { |c| c["user"]["login"] == "github-actions[bot]" && c["body"] == message }
if duplicate
puts "The PR already contains a database change notification"