From a715ee9d3b0cf3a4b9c4bc8c09dd9c4cf85276ad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 7 Sep 2017 13:55:01 -0300 Subject: [PATCH] Bug 15339: Remove extra 'my' --- t/db_dependent/TestBuilder.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t index c3ea95c074..1a2c2fda3c 100644 --- a/t/db_dependent/TestBuilder.t +++ b/t/db_dependent/TestBuilder.t @@ -42,7 +42,7 @@ subtest 'Start with some trivial tests' => sub { isnt( $builder, undef, 'We got a builder' ); my $data; - warning_like { my $data = $builder->build; } qr/.+/, 'Catch a warning'; + warning_like { $data = $builder->build; } qr/.+/, 'Catch a warning'; is( $data, undef, 'build without arguments returns undef' ); is( ref( $builder->schema ), 'Koha::Schema', 'check schema' ); is( ref( $builder->can('delete') ), 'CODE', 'found delete method' ); -- 2.11.0