Skip to content

Commit

Permalink
Fixing linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrehilbert committed Sep 20, 2023
1 parent 98ad047 commit fb29f58
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Verifier struct {
log *logger.Logger
}

func (e *Verifier) Name() string {
func (v *Verifier) Name() string {
return "composed.verifier"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Verifier struct {
log *logger.Logger
}

func (e *Verifier) Name() string {
func (v *Verifier) Name() string {
return "fs.verifier"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Verifier struct {
log progressLogger
}

func (e *Verifier) Name() string {
func (v *Verifier) Name() string {
return "http.verifier"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Verifier struct {
versionOverride *agtversion.ParsedSemVer
}

func (e *Verifier) Name() string {
func (v *Verifier) Name() string {
return "snapshot.verifier"
}

Expand All @@ -41,17 +41,17 @@ func NewVerifier(log *logger.Logger, config *artifact.Config, allowEmptyPgp bool
}

// Verify checks the package from configured source.
func (e *Verifier) Verify(a artifact.Artifact, version string, skipDefaultPgp bool, pgpBytes ...string) error {
return e.verifier.Verify(a, version, skipDefaultPgp, pgpBytes...)
func (v *Verifier) Verify(a artifact.Artifact, version string, skipDefaultPgp bool, pgpBytes ...string) error {
return v.verifier.Verify(a, version, skipDefaultPgp, pgpBytes...)
}

func (e *Verifier) Reload(c *artifact.Config) error {
reloader, ok := e.verifier.(artifact.ConfigReloader)
func (v *Verifier) Reload(c *artifact.Config) error {
reloader, ok := v.verifier.(artifact.ConfigReloader)
if !ok {
return nil
}

cfg, err := snapshotConfig(c, e.versionOverride)
cfg, err := snapshotConfig(c, v.versionOverride)
if err != nil {
return errors.New(err, "snapshot.downloader: failed to generate snapshot config")
}
Expand Down

0 comments on commit fb29f58

Please sign in to comment.