From 8ec8da0491ad89604700b3e29a227966f6d84ba1 Mon Sep 17 00:00:00 2001 From: Perl Tidy Date: Wed, 5 Dec 2018 15:38:52 -0500 Subject: no bug - reformat all the code using the new perltidy rules --- scripts/issue-api-key.pl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'scripts/issue-api-key.pl') diff --git a/scripts/issue-api-key.pl b/scripts/issue-api-key.pl index e4cc1cdd0..25c3ba1a2 100755 --- a/scripts/issue-api-key.pl +++ b/scripts/issue-api-key.pl @@ -19,23 +19,23 @@ use Bugzilla::User::APIKey; Bugzilla->usage_mode(USAGE_MODE_CMDLINE); -my $login = shift - or die "syntax: $0 bugzilla-login [description] [api key]\n"; -my $description = shift; +my $login = shift or die "syntax: $0 bugzilla-login [description] [api key]\n"; +my $description = shift; my $given_api_key = shift; my $api_key; -my $user = Bugzilla::User->check({ name => $login }); +my $user = Bugzilla::User->check({name => $login}); my $params = { - user_id => $user->id, - description => $description, - api_key => $given_api_key, + user_id => $user->id, + description => $description, + api_key => $given_api_key, }; if ($given_api_key) { - $api_key = Bugzilla::User::APIKey->create_special($params); -} else { - $api_key = Bugzilla::User::APIKey->create($params); + $api_key = Bugzilla::User::APIKey->create_special($params); +} +else { + $api_key = Bugzilla::User::APIKey->create($params); } say $api_key->api_key; -- cgit v1.2.3-24-g4f1b