Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
use 'DOES' instead of reftype - closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Wright committed Sep 11, 2015
1 parent e94baeb commit 911b73d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/App/KSP_CKAN/NetKAN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use strict;
use warnings;
use autodie;
use Method::Signatures 20140224;
use Scalar::Util::Reftype;
use File::chdir;
use Carp qw( croak );
use App::KSP_CKAN::Status;
Expand Down Expand Up @@ -37,7 +36,7 @@ data and only run the inflater when required.
=cut

my $Ref = sub {
croak("auth isn't a 'App::KSP_CKAN::Tools::Config' object!") unless reftype( $_[0] )->class eq "App::KSP_CKAN::Tools::Config";
croak("auth isn't a 'App::KSP_CKAN::Tools::Config' object!") unless $_[0]->DOES("App::KSP_CKAN::Tools::Config");
};

has 'config' => ( is => 'ro', required => 1, isa => $Ref );
Expand Down

0 comments on commit 911b73d

Please sign in to comment.