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:
parent
8292d597f4
commit
2146d75c14
@ -15,8 +15,8 @@ enum Argument {
|
||||
switch self {
|
||||
case let .File(a, rest):
|
||||
return [a] + rest.files
|
||||
case .End:
|
||||
return []
|
||||
default:
|
||||
return rest?.files ?? []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user