Unverified Commit b25a73f2 authored by Christian Clauss's avatar Christian Clauss Committed by Michaël Zasso
Browse files

build: pass a tuple of alternatives to str.endswith()

https://docs.python.org/3/library/stdtypes.html#str.endswith

One function call should be faster than three function calls per file.

PR-URL: https://github.com/nodejs/node/pull/40017


Reviewed-By: default avatarRichard Lau <rlau@redhat.com>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarShingo Inoue <leko.noor@gmail.com>
Reviewed-By: default avatarTobias Nießen <tniessen@tnie.de>
Reviewed-By: default avatarDarshan Sen <raisinten@gmail.com>
parent 0e561de6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment