Skip to content

Commit ee130d1

Browse files
committed
fix linting errors
1 parent c96c6c8 commit ee130d1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/logger.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* Lightweight web framework for your serverless applications
55
* @author Jeremy Daly <[email protected]>
66
* @license MIT
7-
*/
7+
*/
88

9-
// IDEA: add unique function identifier
10-
// IDEA: response length
11-
// https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference
9+
// IDEA: add unique function identifier
10+
// IDEA: response length
11+
// https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference
1212

1313
const UTILS = require('./utils') // Require utils library
1414

@@ -64,7 +64,7 @@ exports.config = (config,levels) => {
6464
qs: Object.keys(req.query).length > 0 ? req.query : undefined
6565
}
6666
},
67-
res: res => {
67+
res: () => {
6868
return { }
6969
},
7070
context: context => {
@@ -92,7 +92,7 @@ exports.config = (config,levels) => {
9292
let _context = Object.assign({},defaults.context(context),serializers.context(context))
9393
let _custom = typeof custom === 'object' && !Array.isArray(custom) ?
9494
Object.assign({},defaults.custom(custom),serializers.custom(custom)) :
95-
defaults.custom(custom)
95+
defaults.custom(custom)
9696

9797
return Object.assign({},
9898
{
@@ -198,14 +198,14 @@ exports.sampler = (app,req) => {
198198
// Enable sampling if last sample is passed target split
199199
} else if (rule.target > 0 &&
200200
counts.start+Math.floor(rule.period*1000/rule.target*counts.fCount) < now) {
201-
level = rule.level
202-
counts.fCount++
203-
// console.log('\n*********** FIXED ***********');
201+
level = rule.level
202+
counts.fCount++
203+
// console.log('\n*********** FIXED ***********');
204204
} else if (rule.rate > 0 &&
205205
counts.start+Math.floor(velocity*counts.pCount+velocity/2) < now) {
206-
level = rule.level
207-
counts.pCount++
208-
// console.log('\n*********** RATE ***********');
206+
level = rule.level
207+
counts.pCount++
208+
// console.log('\n*********** RATE ***********');
209209
}
210210

211211
// Increment total count

0 commit comments

Comments
 (0)