fix: lint issues

This commit is contained in:
Yiyang Kang 2022-10-07 02:09:35 +08:00
parent 3464f9a0f5
commit 7e5ba94235
Signed by: kkyy
GPG key ID: 80FD317ECAF06CC3
4 changed files with 13 additions and 23 deletions

View file

@ -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) {