We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CountLines.swift
1 parent bbcf123 commit 1d191b0Copy full SHA for 1d191b0
Examples/count-lines/CountLines.swift
@@ -31,7 +31,7 @@ struct CountLines: AsyncParsableCommand {
31
extension CountLines {
32
var fileHandle: FileHandle {
33
get throws {
34
- guard let inputFile = inputFile else {
+ guard let inputFile else {
35
return .standardInput
36
}
37
return try FileHandle(forReadingFrom: inputFile)
@@ -50,7 +50,7 @@ extension CountLines {
50
print("Lines from stdin", terminator: "")
51
52
53
- if let prefix = prefix {
+ if let prefix {
54
print(", prefixed by '\(prefix)'", terminator: "")
55
56
0 commit comments