projects
/
io-compress-brotli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
799b2a3
)
Make perlcritic happy
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 11 Jun 2019 12:39:33 +0000
(15:39 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 11 Jun 2019 13:03:24 +0000
(16:03 +0300)
lib/IO/Compress/Brotli.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/IO/Compress/Brotli.pm
b/lib/IO/Compress/Brotli.pm
index f1b76e219a29dd6dcfa03360a68959caa8c7af33..ed206a9148bc4cd7b170f843475620174e93ada6 100644
(file)
--- a/
lib/IO/Compress/Brotli.pm
+++ b/
lib/IO/Compress/Brotli.pm
@@
-5,6
+5,8
@@
use strict;
use warnings;
use parent qw/Exporter/;
+use Carp qw/croak/;
+
use IO::Uncompress::Brotli;
our @EXPORT = qw/bro/;
@@
-16,7
+18,7
@@
my %BROTLI_ENCODER_MODE = ( generic => 0, text => 1, font => 2 );
sub mode {
my ($self, $mode) = @_;
- die "Invalid encoder mode"
+ croak 'Invalid encoder mode'
unless $BROTLI_ENCODER_MODE{$mode};
_mode($$self, $mode)
This page took
0.011311 seconds
and
4
git commands to generate.