Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
susanshi committed Jan 24, 2024
1 parent 8fcf4a8 commit 4bf84a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions pkg/common/plugin/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,8 @@ func DownloadPlugin(source PluginSource, targetPath string) error {
}

// download the first blob to the target path
blobReference := fmt.Sprintf("%s", referenceManifest.Blobs[0].Digest)

logrus.Debugf("Downloading blob %s", blobReference)
_, blobReader, err := repository.Blobs().FetchReference(ctx, blobReference)
logrus.Debugf("Downloading blob %s", referenceManifest.Blobs[0].Digest.String())
_, blobReader, err := repository.Blobs().FetchReference(ctx, referenceManifest.Blobs[0].Digest.String())

Check warning on line 131 in pkg/common/plugin/download.go

View check run for this annotation

Codecov / codecov/patch

pkg/common/plugin/download.go#L130-L131

Added lines #L130 - L131 were not covered by tests
if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion pkg/referrerstore/factory/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,4 @@ func TestCreateStoresFromConfig_DynamicPluginStores_ReturnsExpected(t *testing.T
}
})
}

}

0 comments on commit 4bf84a6

Please sign in to comment.