Skip to content
Snippets Groups Projects
Unverified Commit 23dd8829 authored by Mariano Cano's avatar Mariano Cano Committed by GitHub
Browse files

Merge pull request #4 from walterl/fix-javahome-check

Fix check for $JAVA_HOME
parents 903b41c2 277b7d75
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment