diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-10-03 22:08:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 22:08:55 +0200 |
commit | f81ef54f3224d875c40076636282e2b7387a7fd4 (patch) | |
tree | 0a80aa8d4c0b408258a72d653dfabd0b587b3e37 /Bugzilla/Quantum/Home.pm | |
parent | df00fc4c827311b0849b243dbb2d650a2c1957cd (diff) | |
download | bugzilla-f81ef54f3224d875c40076636282e2b7387a7fd4.tar.gz bugzilla-f81ef54f3224d875c40076636282e2b7387a7fd4.tar.xz |
no bug - reformat all new quantum files using new standard
Diffstat (limited to 'Bugzilla/Quantum/Home.pm')
-rw-r--r-- | Bugzilla/Quantum/Home.pm | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Bugzilla/Quantum/Home.pm b/Bugzilla/Quantum/Home.pm index b3f1ec1d1..48d5e47bd 100644 --- a/Bugzilla/Quantum/Home.pm +++ b/Bugzilla/Quantum/Home.pm @@ -13,14 +13,16 @@ use Try::Tiny; use Bugzilla::Constants; sub index { - my ($c) = @_; - $c->bugzilla->login(LOGIN_REQUIRED) or return; - try { - ThrowUserError('invalid_username', { login => 'batman' }) if $c->param('error'); - $c->render(handler => 'bugzilla', template => 'index'); - } catch { - $c->bugzilla->error_page($_); - }; + my ($c) = @_; + $c->bugzilla->login(LOGIN_REQUIRED) or return; + try { + ThrowUserError('invalid_username', {login => 'batman'}) + if $c->param('error'); + $c->render(handler => 'bugzilla', template => 'index'); + } + catch { + $c->bugzilla->error_page($_); + }; } 1; |