mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
Use Self
.
Partial #592 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
06a347c450
commit
e927466dce
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -36,7 +36,7 @@ struct Mas: ParsableCommand {
|
|||
)
|
||||
|
||||
func validate() throws {
|
||||
Mas.initialize()
|
||||
Self.initialize()
|
||||
}
|
||||
|
||||
static func initialize() {
|
||||
|
|
Loading…
Reference in a new issue