eval "use $package;";
# HTTPS support is optional
-if ($@) {
- plan( skip_all => "$package: $@\n" );
-}
-else {
- plan( tests => 1 );
-}
+plan( $@ ? ( skip_all => "$package: $@\n" ) : ( tests => 1 ) );
-{
- can_ok( $package, qw(https_get https_post) );
- my $obj;
-}
+can_ok( $package, qw(https_get https_post) );