summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Error
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Error')
-rw-r--r--Bugzilla/Error/Base.pm6
-rw-r--r--Bugzilla/Error/Template.pm12
2 files changed, 6 insertions, 12 deletions
diff --git a/Bugzilla/Error/Base.pm b/Bugzilla/Error/Base.pm
index ea44c272a..ed3bb2cd5 100644
--- a/Bugzilla/Error/Base.pm
+++ b/Bugzilla/Error/Base.pm
@@ -13,9 +13,9 @@ use Mojo::Base 'Mojo::Exception';
has 'vars' => sub { {} };
has 'template' => sub {
- my $self = shift;
- my $type = lc( (split(/::/, ref $self))[-1] );
- return "global/$type-error";
+ my $self = shift;
+ my $type = lc((split(/::/, ref $self))[-1]);
+ return "global/$type-error";
};
1;
diff --git a/Bugzilla/Error/Template.pm b/Bugzilla/Error/Template.pm
index a3afa7e4d..5cae8f5bc 100644
--- a/Bugzilla/Error/Template.pm
+++ b/Bugzilla/Error/Template.pm
@@ -12,15 +12,9 @@ use strict;
use warnings;
use Moo;
-has 'file' => (
- is => 'ro',
- required => 1,
-);
+has 'file' => (is => 'ro', required => 1,);
-has 'vars' => (
- is => 'ro',
- default => sub { {} },
-);
+has 'vars' => (is => 'ro', default => sub { {} },);
-1; \ No newline at end of file
+1;