summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-04-24 09:27:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-04-24 09:27:16 +0000
commit1f78b5ec306c36e5d900b7b564cc2e6072795d4a (patch)
tree2c6d10e7b0f83fb60037ce9a8ec267d22cbad6f4 /usr.sbin
parent2bc75459a16892fdb937b62d55d08f40895f75c2 (diff)
simplify using //=
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Error.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Error.pm b/usr.sbin/pkg_add/OpenBSD/Error.pm
index 0816d4e0374..09b995bdd89 100644
--- a/usr.sbin/pkg_add/OpenBSD/Error.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Error.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Error.pm,v 1.23 2010/01/19 14:58:53 espie Exp $
+# $OpenBSD: Error.pm,v 1.24 2010/04/24 09:27:15 espie Exp $
#
# Copyright (c) 2004-2010 Marc Espie <espie@openbsd.org>
#
@@ -197,10 +197,7 @@ sub set_pkgname
{
my ($self, $pkgname) = @_;
$self->{pkgname} = $pkgname;
- if (!defined $self->{messages}->{$pkgname}) {
- $self->{messages}->{$pkgname} = [];
- }
- $self->{output} = $self->{messages}->{$pkgname};
+ $self->{output} = $self->{messages}->{$pkgname} //= [];
}
sub warn