Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit e9e329a

Browse files
committed
format code
1 parent a288cc4 commit e9e329a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,15 @@ class BaseCommand extends Command {
107107

108108
// Open browser for authentication
109109
const authLink = `${webUI}/authorize?response_type=ticket&ticket=${ticket.id}`
110+
110111
this.log(`Opening ${authLink}`)
111112
await openBrowser(authLink)
112113

113114
const accessToken = await this.netlify.api.getAccessToken(ticket)
114115

115-
if (!accessToken) this.error('Could not retrieve access token')
116+
if (!accessToken) {
117+
this.error('Could not retrieve access token')
118+
}
116119

117120
const user = await this.netlify.api.getCurrentUser()
118121
const userID = user.id
@@ -143,6 +146,7 @@ class BaseCommand extends Command {
143146
email: email
144147
})
145148
})
149+
146150
// Log success
147151
this.log()
148152
this.log(`${chalk.greenBright('You are now logged into your Netlify account!')}`)

0 commit comments

Comments
 (0)