Skip to content

Commit ed0160e

Browse files
committed
Silence unused variable warnings
1 parent b5e58db commit ed0160e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/MacOSPlatform/MacOS.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public struct MacOS: Platform {
117117

118118
if ctx.mockedHomeDir == nil {
119119
await ctx.message("Extracting the swiftly package...")
120-
sys.installer(
120+
_ = sys.installer(
121121
.pkg(archive),
122122
.target("CurrentUserHomeDirectory")
123123
)
@@ -193,7 +193,7 @@ public struct MacOS: Platform {
193193
}
194194

195195
public func getShell() async throws -> String {
196-
for (key, value) in try await sys.dscl(datasource: ".").read(path: fs.home, key: ["UserShell"]).properties(self) {
196+
for (_, value) in try await sys.dscl(datasource: ".").read(path: fs.home, key: ["UserShell"]).properties(self) {
197197
return value
198198
}
199199

0 commit comments

Comments
 (0)