Skip to content

Commit 242c787

Browse files
committed
fix lint error for firebase script
1 parent c767d5e commit 242c787

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

scripts/firebase/.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"es6": true
4+
}
5+
}

scripts/firebase/functions/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const functions = require('firebase-functions');
24
const gcs = require('@google-cloud/storage')();
35
const path = require('path');
@@ -8,6 +10,7 @@ function sendStoredFile(request, response) {
810
let filePathSegments = request.path.split('/').filter((segment) => {
911
return segment !== '';
1012
});
13+
1114
const version = filePathSegments[0];
1215
const isDocsPath = filePathSegments[1] === 'docs';
1316
const lastSegment = filePathSegments[filePathSegments.length - 1];
@@ -60,4 +63,4 @@ function sendStoredFile(request, response) {
6063
}
6164
}
6265

63-
exports.sendStoredFile = functions.https.onRequest(sendStoredFile);
66+
exports.sendStoredFile = functions.https.onRequest(sendStoredFile);

0 commit comments

Comments
 (0)