Skip to content

Commit fadbf2e

Browse files
committed
removed disallowed guard for 5.2
1 parent de305e1 commit fadbf2e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

swift-tools-support-core/Sources/TSCUtility/Netrc.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ public struct Netrc: AuthorizationProviding {
4545
/// - Returns: `Netrc` container with parsed connection settings, or error
4646
public static func load(fromFileAtPath filePath: AbsolutePath? = nil) -> Result<Netrc, Netrc.Error> {
4747

48-
guard let filePath = filePath ?? AbsolutePath("\(NSHomeDirectory())/.netrc") else {
49-
return .failure(.invalidFilePath)
50-
}
48+
let filePath = filePath ?? AbsolutePath("\(NSHomeDirectory())/.netrc")
5149

5250
guard FileManager.default.fileExists(atPath: filePath.pathString) else { return .failure(.fileNotFound(filePath)) }
5351
guard FileManager.default.isReadableFile(atPath: filePath.pathString),

0 commit comments

Comments
 (0)