Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jun 18, 2024
1 parent 0760eb6 commit aef468e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/dto/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func FromGetEnvironmentStateRequestObject(request openapi.GetEnvironmentStateReq

// ToGetEnvironmentStateResponseObject ...
func ToGetEnvironmentStateResponseObject(data map[string]interface{}) openapi.GetEnvironmentStateResponseObject {
res := openapi.GetEnvironmentState200JSONResponse(openapi.Payload(data))
res := openapi.GetEnvironmentState200JSONResponse(data)

return res
}
Expand Down
1 change: 0 additions & 1 deletion pkg/utils/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var DefaultErrorHandler = func(c *fiber.Ctx, err error) error {
code := fiber.StatusInternalServerError
message := err.Error()

// retrive the custom error code if it's a *fiber.Error
var e *fiber.Error
if errors.As(err, &e) {
code = e.Code
Expand Down

0 comments on commit aef468e

Please # to comment.