Skip to content

Commit

Permalink
style: Enforce consistent debug style
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Nov 2, 2018
1 parent a35e010 commit 4a780b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const debug = debugModule('node-7z')

export class SevenZipStream extends Readable {
constructor (options) {
debug('new SevenZipStream()')
debug('stream: new SevenZipStream()')
// @TODO must be called with the `new` operator
options.highWaterMark = 16
options.objectMode = true
Expand Down Expand Up @@ -158,7 +158,7 @@ export class SevenZipStream extends Readable {
continue
}

const maybeBody = this._maybeBodyData(line)
this._maybeBodyData(line)
}

return this
Expand Down Expand Up @@ -211,7 +211,7 @@ export class SevenZipStream extends Readable {
if (this._stage === STAGE_HEADERS) {
const match = this._matchEndOfHeaders(this, line)
if (match) {
debug('END OF HEADERS')
debug('stream: END_OF_HEADERS')
this._stage = STAGE_BODY
return true
}
Expand All @@ -222,7 +222,7 @@ export class SevenZipStream extends Readable {
_maybeEndOfBody (line) {
const match = this._matchEndOfBody(this, line)
if (match) {
debug('END OF BODY')
debug('stream: END_OF_BODY')
this._stage = STAGE_FOOTERS
return true
}
Expand Down

0 comments on commit 4a780b0

Please sign in to comment.