Skip to content

Commit

Permalink
Cleanup unnecessary array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmeister authored and dahlbyk committed Dec 14, 2017
1 parent 42e31cc commit d96a350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GitTabExpansion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ function GitTabExpansionInternal($lastBlock, $GitStatus = $null) {
# Handles git checkout <ref>
"^(?:checkout).* (?<ref>\S*)$" {
& {
@(gitBranches $matches['ref'] $true)
@(gitRemoteUniqueBranches $matches['ref'])
@(gitTags $matches['ref'])
gitBranches $matches['ref'] $true
gitRemoteUniqueBranches $matches['ref']
gitTags $matches['ref']
# Return only unique branches (to eliminate duplicates where the branch exists locally and on the remote)
} | Select-Object -Unique
}
Expand Down

0 comments on commit d96a350

Please sign in to comment.