Cleaning up.

This commit is contained in:
2025-11-15 15:48:18 -08:00
parent 571443c282
commit e4db163efe
3 changed files with 12 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ import (
"crypto/tls"
"crypto/x509"
"flag"
"errors"
"fmt"
"io/ioutil"
"net"
@@ -109,7 +110,7 @@ func checkSite(hostport string) (string, error) {
state := conn.ConnectionState()
if len(state.PeerCertificates) == 0 {
return "UNKNOWN", fmt.Errorf("no peer certificates presented")
return "UNKNOWN", errors.New("no peer certificates presented")
}
return evaluateCert(state.PeerCertificates[0])
}

View File

@@ -39,10 +39,6 @@ func compress(path, target string, level int) error {
return errors.Wrap(err, "compressing file")
}
if err != nil {
return errors.Wrap(err, "stat(2)ing destination file")
}
return nil
}