diff options
author | Guillem Jover <guillem@debian.org> | 2014-07-27 20:07:32 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-08-09 23:04:37 +0200 |
commit | b0337f001bee1f3791cb87505b1330c9bf83e2be (patch) | |
tree | 7f4b58fcfeb7b778c8f33caa3fd8a0362ce112b9 /scripts/Dpkg/Compression | |
parent | 543ac69d2470e39f6b95a59b82fee116bc1b90d7 (diff) | |
download | dpkg-b0337f001bee1f3791cb87505b1330c9bf83e2be.tar.gz |
scripts: Use //= instead of ||= when appropriate
Replace only safe usages, i.e. those that fallback on initialization
values that evaluate to false anyway. Or when the API is explicit about
the variable being undefined.
Diffstat (limited to 'scripts/Dpkg/Compression')
-rw-r--r-- | scripts/Dpkg/Compression/Process.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Compression/Process.pm b/scripts/Dpkg/Compression/Process.pm index 03d6f276d..8ee5a57a0 100644 --- a/scripts/Dpkg/Compression/Process.pm +++ b/scripts/Dpkg/Compression/Process.pm @@ -190,7 +190,7 @@ it for you. sub wait_end_process { my ($self, %opts) = @_; - $opts{cmdline} ||= $self->{cmdline}; + $opts{cmdline} //= $self->{cmdline}; wait_child($self->{pid}, %opts) if $self->{pid}; delete $self->{pid}; delete $self->{cmdline}; |