Skip to content

Commit

Permalink
Clean up lint in fakes examples (Azure#23203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT authored Jul 19, 2024
1 parent e95f8a2 commit 8563976
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func ExampleManagedClustersServer() {
resp.SetResponse(http.StatusOK, clusterResp, nil)

// to simulate the failure case, use errResp
//errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")
// errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")

return
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ExampleMarketplaceAgreementsServer() {
resp.SetResponse(http.StatusOK, agreementResp, nil)

// to simulate the failure case, use errResp
//errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")
// errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")

return
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func ExampleMetricsServer() {
resp.SetResponse(http.StatusOK, listResp, nil)

// to simulate the failure case, use errResp
//errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")
// errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")

return
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ExampleServer() {
resp.SetResponse(http.StatusOK, queryResp, nil)

// to simulate the failure case, use errResp
//errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")
// errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")

return
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func ExampleServer() {
resp.SetResponse(http.StatusNoContent, armresources.ClientCheckExistenceResponse{Success: true}, nil)

// to simulate the failure case, use errResp
//errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")
// errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")

return
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func ExampleServer() {
resp.SetResponse(http.StatusOK, vmResp, nil)

// to simulate the failure case, use errResp
//errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")
// errResp.SetResponseError(http.StatusBadRequest, "ThisIsASimulatedError")

return
},
Expand Down

0 comments on commit 8563976

Please sign in to comment.