mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
src: remove dead code in AddFingerprintDigest
This function is never called with md_size == 0, and it would make no sense to do so in the future either. PR-URL: https://github.com/nodejs/node/pull/42145 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
f21fbeec2e
commit
ce409279d8
1 file changed
+2
-5
@@ -427,11 +427,8 @@ void AddFingerprintDigest(
|
||||
fingerprint[(3*i)+2] = ':';
|
||||
}
|
||||
|
||||
if (md_size > 0) {
|
||||
fingerprint[(3*(md_size-1))+2] = '\0';
|
||||
} else {
|
||||
fingerprint[0] = '\0';
|
||||
}
|
||||
DCHECK_GT(md_size, 0);
|
||||
fingerprint[(3 * (md_size - 1)) + 2] = '\0';
|
||||
}
|
||||
|
||||
template <const char* (*nid2string)(int nid)>
|
||||
|
||||
Reference in new issue
Block a user