Skip to content

Commit 09f1b22

Browse files
committed
Fix compile warnings
1 parent 5b1fe44 commit 09f1b22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SourceControl/GitRepository.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public final class GitRepository: Repository, WorkingCheckout {
484484
/// - url: The new url of the remote.
485485
public func setURL(remote: String, url: String) throws {
486486
// use barrier for write operations
487-
try self.lock.withLock {
487+
_ = try self.lock.withLock {
488488
try callGit(
489489
"remote",
490490
"set-url",
@@ -714,7 +714,7 @@ public final class GitRepository: Repository, WorkingCheckout {
714714
throw InternalError("This operation is only valid in a working repository")
715715
}
716716
// use barrier for write operations
717-
try self.lock.withLock {
717+
_ = try self.lock.withLock {
718718
try callGit(
719719
"checkout",
720720
"-b",
@@ -729,7 +729,7 @@ public final class GitRepository: Repository, WorkingCheckout {
729729
throw InternalError("This operation is only valid in a working repository")
730730
}
731731

732-
try self.lock.withLock {
732+
_ = try self.lock.withLock {
733733
try callGit(
734734
"archive",
735735
"--format",

0 commit comments

Comments
 (0)