Skip to content

Commit 0948ae2

Browse files
committed
💚 linting 2
1 parent 39d68f0 commit 0948ae2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/http/errors/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func FormatAPIErrorToGo(ctx context.Context, errorContext string, resp *http.Res
3030
return
3131
}
3232
if !reflection.IsEmpty(errorDetails) {
33-
errorMessage.WriteString(errorDetails)
33+
_, _ = errorMessage.WriteString(errorDetails)
3434
}
3535
_ = resp.Body.Close()
3636
}

utils/http/errors/errors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package errors
33
import (
44
"context"
55
"fmt"
6+
"net/http/httptest"
67
"testing"
78

89
"github.com/go-faker/faker/v4"
910
"github.com/stretchr/testify/assert"
1011
"github.com/stretchr/testify/require"
11-
"net/http/httptest"
1212

1313
"github.com/ARM-software/golang-utils/utils/collection"
1414
"github.com/ARM-software/golang-utils/utils/commonerrors"

0 commit comments

Comments
 (0)