Skip to content

Commit

Permalink
fix error variable not defined
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Granados <[email protected]>
  • Loading branch information
dgmike authored and Lith committed May 25, 2020
1 parent 8aac4b9 commit a8dd651
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ const checkServiceAccount = (config) => {
/** Set to default **/
config.baseUrl = 'https://storage.googleapis.com/{bucket-name}';
}

let serviceAccount;

try {
const serviceAccount =
serviceAccount =
typeof config.serviceAccount === 'string'
? JSON.parse(config.serviceAccount)
: config.serviceAccount;
Expand Down

0 comments on commit a8dd651

Please sign in to comment.