fix: lint issues
This commit is contained in:
parent
3464f9a0f5
commit
7e5ba94235
4 changed files with 13 additions and 23 deletions
|
|
@ -110,7 +110,7 @@ func isPgpEncrypted(path string) (bool, error) {
|
|||
return false, errors.Wrap(err, 0)
|
||||
}
|
||||
l, err := script.Echo(string(output)).Match("PGP").Match("encrypted").CountLines()
|
||||
return l > 0, nil
|
||||
return l > 0, err
|
||||
}
|
||||
|
||||
func readPgpEncryptedFile(path string) ([]byte, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue