summaryrefslogtreecommitdiffstats
path: root/lib/network/tools.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-06-22 13:55:06 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-10-30 13:22:09 +0100
commitd88ab5e54acfdf4292445567d8d9d4e40cd5c865 (patch)
tree0a26a46f168e07ebca1c85c03cabec45f9b3a9b9 /lib/network/tools.pm
parent53cd7d8b7c0323dfa875ffb0b4cadc02c85da2dd (diff)
downloaddrakx-net-d88ab5e54acfdf4292445567d8d9d4e40cd5c865.tar
drakx-net-d88ab5e54acfdf4292445567d8d9d4e40cd5c865.tar.gz
drakx-net-d88ab5e54acfdf4292445567d8d9d4e40cd5c865.tar.bz2
drakx-net-d88ab5e54acfdf4292445567d8d9d4e40cd5c865.tar.xz
drakx-net-d88ab5e54acfdf4292445567d8d9d4e40cd5c865.zip
simplify: use //= where appropirate
Diffstat (limited to 'lib/network/tools.pm')
-rw-r--r--lib/network/tools.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/tools.pm b/lib/network/tools.pm
index 92e4765..0f21fdd 100644
--- a/lib/network/tools.pm
+++ b/lib/network/tools.pm
@@ -96,7 +96,7 @@ sub test_connected {
local $| = 1;
my ($cmd) = @_;
- $current_connection_status = -1 if !defined $current_connection_status;
+ $current_connection_status //= -1;
if ($cmd == 0) {
connected_bg__raw(\$kid_pipe_connect, \$current_connection_status);