From 53ab15cf80df8727026cee31cb8dc7899f2488e8 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 28 Jul 2014 05:26:05 +0200 Subject: scripts: Use // instead of || where 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. --- scripts/Dpkg/Compression/FileHandle.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Dpkg/Compression') diff --git a/scripts/Dpkg/Compression/FileHandle.pm b/scripts/Dpkg/Compression/FileHandle.pm index 391728c26..87393932d 100644 --- a/scripts/Dpkg/Compression/FileHandle.pm +++ b/scripts/Dpkg/Compression/FileHandle.pm @@ -419,7 +419,7 @@ sub open_for_read { sub cleanup { my ($self) = @_; - my $cmdline = *$self->{compressor}{cmdline} || ''; + my $cmdline = *$self->{compressor}{cmdline} // ''; *$self->{compressor}->wait_end_process(nocheck => *$self->{allow_sigpipe}); if (*$self->{allow_sigpipe}) { unless (($? == 0) || (WIFSIGNALED($?) && (WTERMSIG($?) == SIGPIPE))) { -- cgit v1.2.3