Skip to content

Commit

Permalink
Remove superfluous status code check
Browse files Browse the repository at this point in the history
  • Loading branch information
pdecat committed Dec 21, 2018
1 parent 2c4d544 commit d6a6134
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions azurerm/resource_arm_application_insights_api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ func resourceArmApplicationInsightsAPIKeyCreate(d *schema.ResourceData, meta int
return fmt.Errorf("Error creating Application Insights API key %q (Resource Group %q): %+v", name, resGroup, err)
}

if result.Response.StatusCode != http.StatusOK {
return fmt.Errorf("Error creating Application Insights API key %q (Resource Group %q): %+v", name, resGroup, result.Response)
}

if result.APIKey == nil {
return fmt.Errorf("Error creating Application Insights API key %q (Resource Group %q): got empty API key", name, resGroup)
}
Expand Down

0 comments on commit d6a6134

Please sign in to comment.