sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 4a19ce0f3f99d8d74bd4d39bde2e01d9d4906fbd
parent ba8583f89f50ecd5023d691b96373deb1d2fd6aa
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Thu, 26 Nov 2015 04:37:35 +0100

No need to check if $ENV{TMP} is defined

Diffstat:
MSBO-Lib/lib/SBO/Lib.pm | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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;