Skip to content

Commit fb3436b

Browse files
committed
fix golangci-lint errors
1 parent 1a3cfea commit fb3436b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

azure/package_pool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (pool *PackagePool) FilepathList(progress aptly.Progress) ([]string, error)
8787
return paths, err
8888
}
8989

90-
func (pool *PackagePool) LegacyPath(filename string, checksums *utils.ChecksumInfo) (string, error) {
90+
func (pool *PackagePool) LegacyPath(_ string, _ *utils.ChecksumInfo) (string, error) {
9191
return "", errors.New("Azure package pool does not support legacy paths")
9292
}
9393

@@ -134,7 +134,7 @@ func (pool *PackagePool) Remove(path string) (int64, error) {
134134
return props.ContentLength(), nil
135135
}
136136

137-
func (pool *PackagePool) Import(srcPath, basename string, checksums *utils.ChecksumInfo, move bool, checksumStorage aptly.ChecksumStorage) (string, error) {
137+
func (pool *PackagePool) Import(srcPath, basename string, checksums *utils.ChecksumInfo, _ bool, checksumStorage aptly.ChecksumStorage) (string, error) {
138138
if checksums.MD5 == "" || checksums.SHA256 == "" || checksums.SHA512 == "" {
139139
// need to update checksums, MD5 and SHA256 should be always defined
140140
var err error

azure/public.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ func (storage *PublishedStorage) LinkFromPool(publishedPrefix, publishedRelPath,
114114
sourcePath string, sourceChecksums utils.ChecksumInfo, force bool) error {
115115

116116
relFilePath := filepath.Join(publishedRelPath, fileName)
117-
// prefixRelFilePath := filepath.Join(publishedPrefix, relFilePath)
118-
// FIXME: check how to integrate publishedPrefix:
117+
// prefixRelFilePath := filepath.Join(publishedPrefix, relFilePath)
118+
// FIXME: check how to integrate publishedPrefix:
119119
poolPath := storage.az.blobPath(fileName)
120120

121121
if storage.pathCache == nil {

0 commit comments

Comments
 (0)