Skip to content

Commit

Permalink
chore: remove usage of module autorest/azure, golint fix (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
christinalau0 authored Jun 5, 2024
1 parent 6bc4f90 commit af9f998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (authArgs *authArgs) validateAuthArgs() error {
fileName := os.Getenv("AZURE_ENVIRONMENT_FILEPATH")
if fileContents, err := os.ReadFile(fileName); err != nil ||
json.Unmarshal(fileContents, &api.Environment{}) != nil {
return errors.New(fmt.Sprintf("failed to read file or unmarshal JSON from file %s: %v", fileName, err))
return fmt.Errorf("failed to read file or unmarshal JSON from file %s: %v", fileName, err)
}
case "AZURECHINACLOUD", "AZUREGERMANCLOUD", "AZUREPUBLICCLOUD", "AZUREUSGOVERNMENTCLOUD":
// Known environment, no action needed
Expand Down

0 comments on commit af9f998

Please sign in to comment.