Skip to content

Commit

Permalink
fixed panic in #7485 (#7546)
Browse files Browse the repository at this point in the history
  • Loading branch information
gedigi authored and chrishoffman committed Oct 9, 2019
1 parent 973cfcf commit ce1b6a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helper/pgpkeys/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func ParsePGPKeys(keyfiles []string) ([]string, error) {

// ReadPGPFile reads the given PGP file from disk.
func ReadPGPFile(path string) (string, error) {
if len(path) <= 0 {
return "", errors.New("empty path")
}
if path[0] == '@' {
path = path[1:]
}
Expand Down

0 comments on commit ce1b6a3

Please sign in to comment.