Skip to content

Commit b0d6b37

Browse files
committed
formatting, single quote to double
1 parent 9354776 commit b0d6b37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/serve.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function createCallback(response) {
3434

3535
function promiseCallback(promise, callback) {
3636
if (!promise) return;
37-
if (typeof promise.then !== 'function') return;
38-
if (typeof callback !== 'function') return;
37+
if (typeof promise.then !== "function") return;
38+
if (typeof callback !== "function") return;
3939

4040
promise.then(
4141
function(data) {callback(null, data)},
@@ -46,7 +46,7 @@ function promiseCallback(promise, callback) {
4646
function createHandler(dir, static) {
4747
return function(request, response) {
4848
// handle proxies without path re-writes (http-servr)
49-
var cleanPath = request.path.replace(/^\/.netlify\/functions/, '')
49+
var cleanPath = request.path.replace(/^\/.netlify\/functions/, "")
5050

5151
var func = cleanPath.split("/").filter(function(e) {
5252
return e;
@@ -71,7 +71,7 @@ function createHandler(dir, static) {
7171
httpMethod: request.method,
7272
queryStringParameters: queryString.parse(request.url.split("?")[1]),
7373
headers: request.headers,
74-
body: isBase64 ? Buffer.from(request.body.toString(), "utf8").toString('base64') : request.body,
74+
body: isBase64 ? Buffer.from(request.body.toString(), "utf8").toString("base64") : request.body,
7575
isBase64Encoded: isBase64
7676
};
7777

@@ -88,7 +88,7 @@ exports.listen = function(port, static) {
8888
app.use(bodyParser.raw({limit: "6mb"}));
8989
app.use(bodyParser.text({limit: "6mb", type: "*/*"}));
9090
app.use(expressLogging(console, {
91-
blacklist: ['/favicon.ico'],
91+
blacklist: ["/favicon.ico"],
9292
}));
9393

9494
app.get("/favicon.ico", function(req, res) {

0 commit comments

Comments
 (0)