diff --git a/truststore_java.go b/truststore_java.go index 0a6ebd86c917f2fe0321ce96a64fdb60870e0ac8..d7bbea6f7ae3755b040f05c5eff26414f3103d42 100644 --- a/truststore_java.go +++ b/truststore_java.go @@ -30,7 +30,7 @@ type JavaTrust struct { // NewJavaTrust initializes a new JavaTrust if the environment has java installed. func NewJavaTrust() (*JavaTrust, error) { home := os.Getenv("JAVA_HOME") - if home != "" { + if home == "" { return nil, ErrTrustNotFound }