diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-11-26 04:37:35 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-11-26 04:37:35 +0100 |
commit | 4a19ce0f3f99d8d74bd4d39bde2e01d9d4906fbd (patch) | |
tree | 45630950a37b9379080a559e10365dae94d388f4 /SBO-Lib/lib/SBO/Lib.pm | |
parent | ba8583f89f50ecd5023d691b96373deb1d2fd6aa (diff) | |
download | sbotools2-4a19ce0f3f99d8d74bd4d39bde2e01d9d4906fbd.tar.xz |
No need to check if $ENV{TMP} is defined
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 3 |
1 files changed, 1 insertions, 2 deletions
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; |