Skip to content

Commit

Permalink
chore: use alloy eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
timcui committed May 28, 2018
1 parent fe5eec3 commit 3b8c3c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
],
"max-depth": [
"off"
],
"strict": [
"error",
"safe"
]
},
"overrides": [
Expand Down
2 changes: 1 addition & 1 deletion bin/lib/util/gzipHttp.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ this.create = this.getGzipResponse = function(opt) {

let gzipOutputStream;

if (headers && (typeof headers['content-length'] === 'undefined')) {
if (headers && (typeof headers['content-length'] !== 'undefined')) {
response.useChunkedEncodingByDefault = false;
delete headers['transfer-encoding'];
delete headers['content-length'];
Expand Down
2 changes: 1 addition & 1 deletion bin/proxy/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ function getToBindCpu(worker) {
let cpu = 0;// 如果只有一个cpu或者都占用了
let i;

if (typeof worker.cpuid === 'undefined') {
if (typeof worker.cpuid !== 'undefined') {
cpu = worker.cpuid;
return cpu;
} else {
Expand Down

0 comments on commit 3b8c3c6

Please sign in to comment.