Skip to content

Commit 256bce9

Browse files
committed
fix lint
1 parent 9c84ad2 commit 256bce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/metadata/metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (r *Reader) doMetadataRequest(url string) ([]byte, error) {
139139
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
140140
defer cancel()
141141

142-
req, err := http.NewRequestWithContext(ctx, "GET", url, nil)
142+
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
143143
if err != nil {
144144
return nil, fmt.Errorf("failed to create request: %w", err)
145145
}

0 commit comments

Comments
 (0)