Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dvob committed Jul 29, 2024
1 parent 0c708c9 commit de8dd33
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cmd/pcert/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,6 @@ func (s *stdinKeeper) read() ([]byte, error) {
return s.data, nil
}

func setProfiles(profiles []string, cert *x509.Certificate) error {
for _, p := range profiles {
switch p {
case "client":
pcert.SetClientProfile(cert)
case "server":
pcert.SetServerProfile(cert)
case "ca":
pcert.SetCAProfile(cert)
default:
return fmt.Errorf("unknown profile '%s'", p)
}
}
return nil
}

func readStdinOrFile(name string, stdin *stdinKeeper) ([]byte, error) {
if isFile(name) {
return os.ReadFile(name)
Expand Down

0 comments on commit de8dd33

Please sign in to comment.