Skip to content

Commit 7c518d7

Browse files
authored
Merge pull request #196534 from dduugg/rubocop-1.68.0
Make compatible with rubocop 1.68.0
2 parents 0fc6ab2 + 357105e commit 7c518d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Formula/p/portaudio.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Portaudio < Formula
1313
regex(/href=.*?pa[._-]stable[._-]v?(\d+)(?:[._-]\d+)?\.t/i)
1414
strategy :page_match do |page, regex|
1515
# Modify filename version (190700) to match formula version (19.7.0)
16-
page.scan(regex).map { |match| match&.first&.scan(/\d{2}/)&.map(&:to_i)&.join(".") }
16+
page.scan(regex).map { |match| match[0].scan(/\d{2}/).map(&:to_i).join(".") }
1717
end
1818
end
1919

Formula/u/util-linux.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def caveats
138138

139139
flags = ["x", "w", "r"] * 3
140140
perms = flags.each_with_index.reduce("") do |sum, (flag, index)|
141-
sum.insert 0, ((stat.mode & (2 ** index)).zero? ? "-" : flag)
141+
sum.insert 0, (stat.mode.nobits?(2 ** index) ? "-" : flag)
142142
end
143143

144144
out = shell_output("#{bin}/namei -lx /usr").split("\n").last.split

0 commit comments

Comments
 (0)