1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Use rest to compute the remainder of the files.

This commit is contained in:
Rob Rix 2015-11-02 11:44:30 -05:00
parent 8292d597f4
commit 2146d75c14

View File

@ -15,8 +15,8 @@ enum Argument {
switch self {
case let .File(a, rest):
return [a] + rest.files
case .End:
return []
default:
return rest?.files ?? []
}
}
}