diff options
author | Guillem Jover <guillem@debian.org> | 2012-12-30 15:13:44 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-04-29 18:46:50 +0200 |
commit | 6024a66abdf9e49f29099a49c0f057459d77df80 (patch) | |
tree | 5689a729789793673b933f0f19c16a9abb072065 /scripts/Dpkg/Control | |
parent | 14b92d54d044fc9b932997869107a1ae02a1a60f (diff) | |
download | dpkg-6024a66abdf9e49f29099a49c0f057459d77df80.tar.gz |
scripts: Use // operator instead of an explicit defined check
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r-- | scripts/Dpkg/Control/Fields.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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); |