Skip to content

Commit

Permalink
Fix store path evaluation order option > env > default [fix #112]
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleiade committed Sep 15, 2014
1 parent ec249c6 commit e17d462
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ func InferStorePath() string {
envPath := os.Getenv(ENV_TROUSSEAU_STORE)
contextPath := GetStorePath()

if envPath != "" {
return envPath
} else if contextPath != "" {
if contextPath != "" {
return contextPath
} else if envPath != "" {
return envPath
}

return filepath.Join(os.Getenv("HOME"), DEFAULT_STORE_FILENAME)
Expand Down

0 comments on commit e17d462

Please sign in to comment.