Use Self.

Partial #592

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-10-21 07:38:04 -04:00
parent 06a347c450
commit e927466dce
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -126,7 +126,7 @@ class MasStoreSearch: StoreSearch {
}
.map { data in
guard let html = String(data: data, encoding: .utf8),
let capture = MasStoreSearch.appVersionExpression.firstMatch(in: html)?.captures[0],
let capture = Self.appVersionExpression.firstMatch(in: html)?.captures[0],
let version = Version(tolerant: capture)
else {
return nil

View file

@ -24,7 +24,7 @@ struct SysCtlSystemCommand: ExternalCommand {
}
static var isAppleSilicon: Bool = {
let sysctl = SysCtlSystemCommand()
let sysctl = Self()
do {
// Returns 1 on Apple Silicon even when run in an Intel context in Rosetta.
try sysctl.run(arguments: "-in", "hw.optional.arm64")

View file

@ -36,7 +36,7 @@ struct Mas: ParsableCommand {
)
func validate() throws {
Mas.initialize()
Self.initialize()
}
static func initialize() {