From 6024a66abdf9e49f29099a49c0f057459d77df80 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 30 Dec 2012 15:13:44 +0100 Subject: scripts: Use // operator instead of an explicit defined check --- scripts/Dpkg/Control/Fields.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Dpkg/Control') diff --git a/scripts/Dpkg/Control/Fields.pm b/scripts/Dpkg/Control/Fields.pm index b3c61f9cc..f8db7d453 100644 --- a/scripts/Dpkg/Control/Fields.pm +++ b/scripts/Dpkg/Control/Fields.pm @@ -440,7 +440,7 @@ added to $to otherwise. sub field_transfer_single($$;$) { my ($from, $to, $field) = @_; - $field = $_ unless defined $field; + $field //= $_; my ($from_type, $to_type) = ($from->get_type(), $to->get_type()); $field = field_capitalize($field); -- cgit v1.2.3