about summary refs log tree commit diff
path: root/perl/lib
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-20T10·45+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-20T10·45+0100
commit048ec3d3f2b53a6a4a3d1215d40ed992944f83a3 (patch)
treefce7938a3eb9ca45554d68f6c068c59b0e1bb033 /perl/lib
parent05cddf0f5af75de7a105404f619390a4ac3bec20 (diff)
Fix bad operator
Spotted by Perl 5.20:

  Possible precedence issue with control flow operator at /usr/lib/perl5/site_perl/5.20.1/x86_64-linux-gnu-thread-multi/Nix/Utils.pm line 46.
Diffstat (limited to 'perl/lib')
-rw-r--r--perl/lib/Nix/Utils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/lib/Nix/Utils.pm b/perl/lib/Nix/Utils.pm
index 32fb0aafb808..392c45f2fffb 100644
--- a/perl/lib/Nix/Utils.pm
+++ b/perl/lib/Nix/Utils.pm
@@ -43,5 +43,5 @@ sub readFile {
 sub mkTempDir {
     my ($name) = @_;
     return tempdir("$name.XXXXXX", CLEANUP => 1, DIR => $ENV{"TMPDIR"} // $ENV{"XDG_RUNTIME_DIR"} // "/tmp")
-        or die "cannot create a temporary directory";
+        || die "cannot create a temporary directory";
 }