@@ -19,7 +19,7 @@ const {
19
19
deleteCloudFrontDistribution,
20
20
createOrUpdateMetaRole,
21
21
removeAllRoles,
22
- getMetrics,
22
+ getMetrics
23
23
} = require ( './utils' )
24
24
25
25
class Website extends Component {
@@ -49,7 +49,7 @@ class Website extends Component {
49
49
)
50
50
}
51
51
52
- await createOrUpdateMetaRole ( this , inputs , clients , this . accountId ) ;
52
+ await createOrUpdateMetaRole ( this , inputs , clients , this . accountId )
53
53
54
54
if ( config . domain ) {
55
55
log ( `Setting up domain ${ config . domain } ` )
@@ -162,7 +162,7 @@ class Website extends Component {
162
162
163
163
const clients = getClients ( this . credentials . aws , this . state . region )
164
164
165
- await removeAllRoles ( this , clients ) ;
165
+ await removeAllRoles ( this , clients )
166
166
167
167
log ( `Clearing bucket ${ config . bucketName } ` )
168
168
await clearBucket ( clients , config . bucketName )
@@ -202,7 +202,7 @@ class Website extends Component {
202
202
async metrics ( inputs = { } ) {
203
203
// Validate
204
204
if ( ! inputs . rangeStart || ! inputs . rangeEnd ) {
205
- throw new Error ( 'rangeStart and rangeEnd are require inputs' ) ;
205
+ throw new Error ( 'rangeStart and rangeEnd are require inputs' )
206
206
}
207
207
208
208
const result = await getMetrics (
@@ -211,9 +211,9 @@ class Website extends Component {
211
211
this . state . distributionId ,
212
212
inputs . rangeStart ,
213
213
inputs . rangeEnd
214
- ) ;
214
+ )
215
215
216
- return result ;
216
+ return result
217
217
}
218
218
}
219
219
0 commit comments