Fix lint error

This commit is contained in:
Volodymyr Zotov
2025-08-22 10:25:45 -05:00
parent 71b29d5fe6
commit 05ad484bd6

View File

@@ -1,7 +1,6 @@
package op
import (
"fmt"
"github.com/1Password/onepassword-operator/pkg/testhelper/system"
)
@@ -13,12 +12,3 @@ func UpdateItemPassword(item string) error {
}
return nil
}
// ReadItemPassword reads the password of an item in 1Password
func ReadItemPassword(item, vault string) (string, error) {
output, err := system.Run("op", "read", fmt.Sprintf("op://%s/%s/password", vault, item))
if err != nil {
return "", err
}
return output, nil
}