Skip to content

Commit 4683a07

Browse files
committed
Make Perl::Critic happy
1 parent 11fadda commit 4683a07

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

lib/AI/TensorFlow/Libtensorflow/Session.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ $ffi->attach([ 'SessionPRunSetup' => 'PRunSetup' ] => [
218218
$status,
219219
);
220220

221-
return undef unless defined $handle;
221+
return unless defined $handle;
222222

223223
window( my $handle_window, $handle );
224224

t/01_hello_tf.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22

3-
use Test::More tests => 1;
3+
use Test2::V0;
44

55
use lib 't/lib';
66

t/05_session_run.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22

3-
use Test::Most tests => 1;
3+
use Test2::V0;
44

55
use lib 't/lib';
66
use TF_TestQuiet;

t/lib/TF_TestQuiet.pm

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package TF_TestQuiet;
22

3+
use strict;
4+
use warnings;
5+
36
sub import {
47
if( $ENV{HARNESS_ACTIVE} && ! ( $ENV{AUTHOR_TESTING} || $ENV{RELEASE_TESTING} ) ) {
58
$ENV{TF_CPP_MIN_LOG_LEVEL} = 3;

t/lib/TF_Utils.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ sub LoadGraph {
4343
$graph->ImportGraphDef( $buffer, $opts, $status );
4444

4545
if( $status->GetCode != AI::TensorFlow::Libtensorflow::Status::OK ) {
46-
return undef;
46+
return;
4747
}
4848

4949
if( ! defined $checkpoint_prefix ) {

0 commit comments

Comments
 (0)