From 4a19ce0f3f99d8d74bd4d39bde2e01d9d4906fbd Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Thu, 26 Nov 2015 04:37:35 +0100 Subject: No need to check if $ENV{TMP} is defined --- SBO-Lib/lib/SBO/Lib.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'SBO-Lib/lib') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index d5796f2..0f1eae2 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -91,8 +91,7 @@ use Fcntl qw(F_SETFD F_GETFD); # get $TMP from the env, if defined - we use two variables here because there # are times when we need to no if the environment variable is set, and other # times where it doesn't matter. -our $env_tmp; -$env_tmp = $ENV{TMP} if defined $ENV{TMP}; +our $env_tmp = $ENV{TMP}; our $tmpd = $env_tmp ? $env_tmp : '/tmp/SBo'; make_path($tmpd) unless -d $tmpd; -- cgit v1.2.3