mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Fix: Implement golangci-lint suggestions
This commit is contained in:
@@ -457,7 +457,7 @@ func (context *AptlyContext) pgpProvider() string {
|
||||
return provider
|
||||
}
|
||||
|
||||
func (context *AptlyContext) getGPGFinder(provider string) pgp.GPGFinder {
|
||||
func (context *AptlyContext) getGPGFinder() pgp.GPGFinder {
|
||||
switch context.pgpProvider() {
|
||||
case "gpg1":
|
||||
return pgp.GPG1Finder()
|
||||
@@ -480,7 +480,7 @@ func (context *AptlyContext) GetSigner() pgp.Signer {
|
||||
return &pgp.GoSigner{}
|
||||
}
|
||||
|
||||
return pgp.NewGpgSigner(context.getGPGFinder(provider))
|
||||
return pgp.NewGpgSigner(context.getGPGFinder())
|
||||
}
|
||||
|
||||
// GetVerifier returns Verifier with respect to provider
|
||||
@@ -493,7 +493,7 @@ func (context *AptlyContext) GetVerifier() pgp.Verifier {
|
||||
return &pgp.GoVerifier{}
|
||||
}
|
||||
|
||||
return pgp.NewGpgVerifier(context.getGPGFinder(provider))
|
||||
return pgp.NewGpgVerifier(context.getGPGFinder())
|
||||
}
|
||||
|
||||
// UpdateFlags sets internal copy of flags in the context
|
||||
|
||||
Reference in New Issue
Block a user