Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianAtDell committed Jan 7, 2025
1 parent 4626523 commit a901ce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mock/service/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package service

import (
"fmt"
"google.golang.org/grpc"
"math"
"path"
"strconv"
"strings"

"google.golang.org/grpc"

log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
Expand Down
3 changes: 1 addition & 2 deletions utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ func TestParseSlice(t *testing.T) {
expected = []string{"value1", "value2 ", " value3 "}
result = utils.ParseSlice(input)
Expect(result).To(Equal(expected))

}

func TestPageVolumes(t *testing.T) {
Expand Down Expand Up @@ -633,7 +632,7 @@ func (e *ErrorStruct) GRPCStatus() *grpcstatus.Status {
if e == nil || e.StatusCode == 0 {
return grpcstatus.New(codes.OK, e.Msg)
}
return grpcstatus.New(codes.Code(e.StatusCode), e.Msg)
return grpcstatus.New(codes.Code(uint32(e.StatusCode)), e.Msg)

Check failure on line 635 in utils/utils_test.go

View workflow job for this annotation

GitHub Actions / Golang Validation / Lint golang code

G115: integer overflow conversion int -> uint32 (gosec)
}

func TestIsSuccess(t *testing.T) {
Expand Down

0 comments on commit a901ce4

Please sign in to comment.