Skip to content

Commit

Permalink
Fixed linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsporn committed Apr 19, 2024
1 parent 0d7f90f commit 9fadc2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/debugapi/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func configure() error {
return c.String(http.StatusInternalServerError, err.Error())
}

return c.Blob(http.StatusOK, echo.MIMEApplicationJSONCharsetUTF8, blockJSON)
return c.Blob(http.StatusOK, echo.MIMEApplicationJSON, blockJSON)
})

routeGroup.GET(RouteValidators, func(c echo.Context) error {
Expand Down
4 changes: 2 additions & 2 deletions components/inx/server_issuance.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ func (s *Server) ReadBlockIssuance(_ context.Context, req *inx.BlockIssuanceRequ
// or a root block
rootBlocks, err := deps.Protocol.Engines.Main.Get().Storage.RootBlocks(parentBlockID.Slot())
if err != nil {
return status.Errorf(codes.Internal, "failed to get root blocks for slot %d: %s", parentBlockID.Slot(), err)
return status.Errorf(codes.Internal, "failed to get root blocks for slot %d: %s", parentBlockID.Slot(), err.Error())
}

isRootBlock, err := rootBlocks.Has(parentBlockID)
if err != nil {
return status.Errorf(codes.Internal, "failed to check if block %s is a root block: %w", parentBlockID, err)
return status.Errorf(codes.Internal, "failed to check if block %s is a root block: %s", parentBlockID, err.Error())
}

if isRootBlock {
Expand Down

0 comments on commit 9fadc2b

Please sign in to comment.