Skip to content

Commit

Permalink
Merge pull request #4 from Manwar/fix-cpants-reported-issue
Browse files Browse the repository at this point in the history
- Add missing 'use warnings;' as reported by CPANTS.
  • Loading branch information
eserte committed Jun 7, 2016
2 parents a071837 + 2525df8 commit ca73bd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 1 addition & 8 deletions lib/Kwalify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,14 @@
package Kwalify;

use strict;
use warnings;

use base qw(Exporter);
use vars qw(@EXPORT_OK $VERSION);
@EXPORT_OK = qw(validate);

$VERSION = '1.22_90';

BEGIN {
if ($] < 5.006) {
$INC{"warnings.pm"} = 1;
*warnings::import = sub { };
*warnings::unimport = sub { };
}
}

sub validate ($$) {
my($schema, $data) = @_;
my $self = Kwalify::Validator->new;
Expand Down
2 changes: 2 additions & 0 deletions lib/Schema/Kwalify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
package Schema::Kwalify;

use strict;
use warnings;

use vars qw($VERSION);
$VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);

Expand Down

0 comments on commit ca73bd2

Please sign in to comment.