Skip to content

Commit be8790b

Browse files
committed
style: update firebase functions to pass linter
1 parent 994a55d commit be8790b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

firebase/functions/index.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ const functions = require("firebase-functions");
1919

2020
// Return meta tag for remote go import path
2121
// See: https://pkg.go.dev/cmd/go#hdr-Remote_import_paths
22-
const remoteGoImport = ({ importPrefix, vcs, repoRoot }) => {
22+
const remoteGoImport = ({importPrefix, vcs, repoRoot}) => {
2323
return `<meta name="go-import" content="${importPrefix} ${vcs} ${repoRoot}">`;
24-
}
24+
};
2525

2626
// Creates a firebase endpoint which implements a golang vanity server
27-
const vanityGoEndpoint = ({ importPrefix, vcs, repoRoot }) =>
28-
functions.https.onRequest((request, response) => {
29-
if (request.query["go-get"] === "1") {
30-
return response.send(
31-
remoteGoImport({ importPrefix, vcs, repoRoot })
32-
);
33-
}
34-
return response.redirect(repoRoot);
35-
});
27+
const vanityGoEndpoint = ({importPrefix, vcs, repoRoot}) =>
28+
functions.https.onRequest((request, response) => {
29+
if (request.query["go-get"] === "1") {
30+
return response.send(
31+
remoteGoImport({importPrefix, vcs, repoRoot})
32+
);
33+
}
34+
return response.redirect(repoRoot);
35+
});
3636

3737
exports.configsync = vanityGoEndpoint({
38-
importPrefix: 'kpt.dev/configsync',
39-
vcs: 'git',
40-
repoRoot: 'https://github.com/GoogleContainerTools/kpt-config-sync.git'
38+
importPrefix: "kpt.dev/configsync",
39+
vcs: "git",
40+
repoRoot: "https://github.com/GoogleContainerTools/kpt-config-sync.git",
4141
});
4242

4343
exports.resourcegroup = vanityGoEndpoint({

0 commit comments

Comments
 (0)