Skip to content

Commit

Permalink
fix: Variable renamed to pass linting test
Browse files Browse the repository at this point in the history
  • Loading branch information
riweston committed Jun 21, 2022
1 parent 8d6e5d8 commit 79d41fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/aztx/contexts.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ func ReadAzureProfile(file string) File {

func ReadAzureProfileDefault(file File) (subscription string) {
var subscriptionName string
var subscriptionId uuid.UUID
var subscriptionID uuid.UUID

for idx := range file.Subscriptions {
if file.Subscriptions[idx].IsDefault {
subscriptionName = file.Subscriptions[idx].Name
subscriptionId = file.Subscriptions[idx].ID
subscriptionID = file.Subscriptions[idx].ID
}
}
return fmt.Sprintf("Current Context: %s (%s)", subscriptionName, subscriptionId)
return fmt.Sprintf("Current Context: %s (%s)", subscriptionName, subscriptionID)
}

func WriteAzureProfile(file File, id uuid.UUID, outFile string) error {
Expand Down

0 comments on commit 79d41fb

Please sign in to comment.