diff options
author | Perl Tidy <perltidy@bugzilla.org> | 2018-12-05 21:38:52 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-12-05 23:49:08 +0100 |
commit | 8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch) | |
tree | 9d270f173330ca19700e0ba9f2ee931300646de1 /scripts/issue-api-key.pl | |
parent | a7bb5a65b71644d9efce5fed783ed545b9336548 (diff) | |
download | bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz |
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'scripts/issue-api-key.pl')
-rwxr-xr-x | scripts/issue-api-key.pl | 20 |
1 files changed, 10 insertions, 10 deletions
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; |