Skip to content

Commit 779e360

Browse files
authored
Merge pull request #229992 from Homebrew/fix_style
Fix `brew style`
2 parents fed4030 + 46ffe11 commit 779e360

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Formula/t/tfproviderlint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def install
2323
ldflags = %W[
2424
-s -w
2525
-X github.com/bflad/tfproviderlint/version.Version=#{version}
26-
-X github.com/bflad/tfproviderlint/version.VersionPrerelease=#{build.head? ? "dev" : ""}
26+
-X github.com/bflad/tfproviderlint/version.VersionPrerelease=#{"dev" if build.head?}
2727
]
2828

2929
system "go", "build", *std_go_args(ldflags:), "./cmd/tfproviderlint"

cmd/determine-rebottle-runners.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run
4747
timeout = args.named.second.to_i
4848

4949
tags = formula.bottle_specification.collector.tags
50-
runners = if tags.count == 1 && tags.first.system == :all
50+
runners = if tags.one? && tags.first.system == :all
5151
# Build on all supported macOS versions and Linux.
5252
[linux_runner_spec(:x86_64, timeout)] + MacOSVersion::SYMBOLS.keys.flat_map do |symbol|
5353
macos_version = MacOSVersion.from_symbol(symbol)

0 commit comments

Comments
 (0)