Skip to content

Commit

Permalink
Provide type annotation for multi-line closure (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
natecook1000 authored Jan 13, 2023
1 parent 3b6f814 commit 846d1ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension FishCompletionsGenerator {
"\(prefix) \(suggestion)"
}

let subcommandCompletions = subcommands.map { subcommand in
let subcommandCompletions: [String] = subcommands.map { subcommand in
let escapedAbstract = subcommand.configuration.abstract.fishEscape()
let suggestion = "-f -a '\(subcommand._commandName)' -d '\(escapedAbstract)'"
return complete(suggestion: suggestion)
Expand Down

0 comments on commit 846d1ad

Please sign in to comment.