mirror of
https://github.com/helm/helm.git
synced 2026-04-10 03:16:20 -04:00
pkg/*: Small linting fixes
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
parent
0941e3e345
commit
4abcdc40ef
2 changed files with 3 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ func (p *Package) Clearsign(filename string) error {
|
|||
// promptUser implements provenance.PassphraseFetcher
|
||||
func promptUser(name string) ([]byte, error) {
|
||||
fmt.Printf("Password for key %q > ", name)
|
||||
pw, err := terminal.ReadPassword(int(syscall.Stdin))
|
||||
pw, err := terminal.ReadPassword(syscall.Stdin)
|
||||
fmt.Println()
|
||||
return pw, err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ func TestIndexCustomSchemeDownload(t *testing.T) {
|
|||
|
||||
func verifyIndex(t *testing.T, actual *IndexFile) {
|
||||
var empty time.Time
|
||||
if actual.Generated == empty {
|
||||
if actual.Generated.Equal(empty) {
|
||||
t.Errorf("Generated should be greater than 0: %s", actual.Generated)
|
||||
}
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ func verifyIndex(t *testing.T, actual *IndexFile) {
|
|||
if len(g.Maintainers) != 2 {
|
||||
t.Error("Expected 2 maintainers.")
|
||||
}
|
||||
if g.Created == empty {
|
||||
if g.Created.Equal(empty) {
|
||||
t.Error("Expected created to be non-empty")
|
||||
}
|
||||
if g.Description == "" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue