mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
lib: fix a few minor issues flagged by lgtm
* Confusing (but correct) regex using `A-z` character range by accident * Add the status argument to afterShutdown PR-URL: https://github.com/nodejs/node/pull/25873 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
This commit is contained in:
parent
91adbe14b4
commit
106dd1e345
@ -1515,7 +1515,8 @@ function streamOnPause() {
|
||||
this[kHandle].readStop();
|
||||
}
|
||||
|
||||
function afterShutdown() {
|
||||
function afterShutdown(status) {
|
||||
// Currently this status value is unused
|
||||
this.callback();
|
||||
const stream = this.handle[kOwner];
|
||||
if (stream)
|
||||
|
2
tools/cpplint.py
vendored
2
tools/cpplint.py
vendored
@ -636,7 +636,7 @@ _NULL_TOKEN_PATTERN = re.compile(r'\bNULL\b')
|
||||
|
||||
_RIGHT_LEANING_POINTER_PATTERN = re.compile(r'[^=|(,\s><);&?:}]'
|
||||
r'(?<!(sizeof|return))'
|
||||
r'\s\*[a-zA-z_][0-9a-zA-z_]*')
|
||||
r'\s\*[a-zA-Z_][0-9a-zA-Z_]*')
|
||||
|
||||
_regexp_compile_cache = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user