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:
Tobias Nießen authored and Stewart X Addison committed 2022-03-07 17:44:00 +00:00
1 parent f21fbeec2e
commit ce409279d8
1 file changed
+2 -5
+2 -5
View File
@@ -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)>