diff options
author | rillig <rillig@pkgsrc.org> | 2015-10-11 21:06:20 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2015-10-11 21:06:20 +0000 |
commit | 9a2aeca933f3968bb40c06cd825cc27535c2b66f (patch) | |
tree | cb62719de9eeee6e55cb870384a0e32c4dfb54ca /pkgtools/pkglint/files/PkgLint/Type.pm | |
parent | 6b0c2cddf692c97bf92afdcecdcc94ffe4ab8f8f (diff) | |
download | pkgsrc-9a2aeca933f3968bb40c06cd825cc27535c2b66f.tar.gz |
Fixed errors reported by perlcritic in --gentle mode
Diffstat (limited to 'pkgtools/pkglint/files/PkgLint/Type.pm')
-rw-r--r-- | pkgtools/pkglint/files/PkgLint/Type.pm | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pkgtools/pkglint/files/PkgLint/Type.pm b/pkgtools/pkglint/files/PkgLint/Type.pm index 3f542620c4e..17bce8d8205 100644 --- a/pkgtools/pkglint/files/PkgLint/Type.pm +++ b/pkgtools/pkglint/files/PkgLint/Type.pm @@ -1,9 +1,12 @@ -package PkgLint::Type; -#========================================================================== +# $NetBSD: Type.pm,v 1.2 2015/10/11 21:06:20 rillig Exp $ +# # A Type in pkglint is a combination of a data type and a permission # specification. Further details can be found in the chapter ``The pkglint # type system'' of the pkglint book. -#========================================================================== +# +package PkgLint::Type; + +use strict; BEGIN { import PkgLint::Util qw( @@ -47,7 +50,7 @@ sub perms($$) { return $acl_entry->[ACLE_PERMS]; } } - return undef; + return; } # Returns the union of all possible permissions. This can be used to @@ -96,7 +99,3 @@ sub to_string($) { return (["", "InternalList of ", "List of "]->[$self->kind_of_list]) . $self->basic_type; } - -#== End of PkgLint::Type ================================================== - -1; |