- PBP compliance via Perl::Critic
- Use bare return to return failure - No code before strictures are enabled
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# $Id$
|
||||
#
|
||||
# Copyright (c) 2008 Eric Miller
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -28,9 +29,8 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
package SNMP::Info::Airespace;
|
||||
$VERSION = '1.09';
|
||||
use strict;
|
||||
|
||||
use strict;
|
||||
use Exporter;
|
||||
use SNMP::Info;
|
||||
|
||||
@@ -39,6 +39,8 @@ use SNMP::Info;
|
||||
|
||||
use vars qw/$VERSION %FUNCS %GLOBALS %MIBS %MUNGE/;
|
||||
|
||||
$VERSION = '1.09';
|
||||
|
||||
%MIBS = (
|
||||
%SNMP::Info::MIBS,
|
||||
'AIRESPACE-WIRELESS-MIB' => 'bsnAPName',
|
||||
@@ -151,7 +153,7 @@ sub layers {
|
||||
sub serial {
|
||||
my $airespace = shift;
|
||||
my $sn = $airespace->airespace_serial();
|
||||
return undef unless defined $sn;
|
||||
return unless defined $sn;
|
||||
|
||||
return $sn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user