Skip to content

Commit b645b80

Browse files
committed
💚 linting
1 parent d780581 commit b645b80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/artefacts/artefacts_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import (
2626
"github.com/ARM-software/golang-utils/utils/field"
2727
"github.com/ARM-software/golang-utils/utils/filesystem"
2828
"github.com/ARM-software/golang-utils/utils/hashing"
29+
"github.com/ARM-software/golang-utils/utils/safecast"
2930
"github.com/ARM-software/golang-utils/utils/safeio"
3031
)
3132

@@ -156,7 +157,7 @@ func testGetArtefactManagers(t *testing.T, artefacts []*testArtefact, embeddedRe
156157
}
157158

158159
return func(ctx context.Context, _ string) (a *client.ArtefactManagerCollection, resp *http.Response, err error) {
159-
count := int32(len(artefacts))
160+
count := safecast.ToInt32(len(artefacts))
160161
if embeddedResource {
161162
items, mapErr := collection.MapWithError(artefacts, func(artefact *testArtefact) (client.ArtefactManagerItem, error) {
162163
item, err := artefact.fetchTestArtefact(ctx)

0 commit comments

Comments
 (0)