Bug 22835: (follow-up) Remove unwanted warn
authorAgustin Moyano <agustinmoyano@theke.io>
Fri, 3 May 2019 03:15:12 +0000 (00:15 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jun 2019 16:34:53 +0000 (17:34 +0100)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/REST/V1/Static.pm

index d0f31c9..0883a37 100644 (file)
@@ -55,7 +55,7 @@ sub get {
         );
 
         @plugins = grep { $_->api_namespace eq $namespace} @plugins;
-        warn scalar(@plugins);
+
         return $c->render({ status => 404, openapi => { error => 'File not found' } }) unless scalar(@plugins) > 0;
         return $c->render({ status => 500, openapi => { error => 'Namespace not unique' } }) unless scalar(@plugins) == 1;
 
@@ -63,13 +63,8 @@ sub get {
 
         my $basepath = $plugin->bundle_path;
 
-        warn $basepath;
-
         my $relpath = join ('/', splice (@$path, 5));
 
-        warn $relpath;
-
-        warn join('/', $basepath, $relpath);
         return try {
             my $asset = Mojo::Asset::File->new(path => join('/', $basepath, $relpath));
             return $c->render({ status => 404, openapi => { error => 'File not found' } }) unless $asset->is_file;