diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index c758bd91..1865979b 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -66,7 +66,7 @@ sub getHydraPath { sub getHydraDBPath { my $db = $ENV{"HYDRA_DBI"}; - if ($db ne "") { + if ( defined $db ) { return $db ; } else {