summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-11-17 15:34:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-11-17 15:34:16 +0000
commit2f7c716c186d427b593b0f12ecc9a5b8f35bb1fe (patch)
treef7e5efb23a54ef14f47c5355605b80bfe2dd6237 /usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
parent7dce63f735f77b1db8d66d52d33ae5f63544523a (diff)
don't return undef, use plain return.
(return undef is only false in a scalar context) found my perlcritic, one of the few issues I agree with...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
index 0b9734ef3d8..eb821645d4a 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepositoryList.pm,v 1.2 2006/03/08 12:10:47 espie Exp $
+# $OpenBSD: PackageRepositoryList.pm,v 1.3 2006/11/17 15:34:15 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -57,7 +57,7 @@ sub find
}
return $pkg if defined $pkg;
}
- return undef;
+ return;
}
sub grabPlist
@@ -82,7 +82,7 @@ sub grabPlist
}
return $plist if defined $plist;
}
- return undef;
+ return;
}
sub available