mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-24 23:04:00 +08:00
removed length check
This commit is contained in:
parent
8f14a943a9
commit
126e67811c
1 changed files with 1 additions and 5 deletions
|
@ -156,11 +156,7 @@ export async function addResult(
|
|||
const resulthash = result.hash;
|
||||
delete result.hash;
|
||||
delete result.stringified;
|
||||
if (
|
||||
req.ctx.configuration.results.objectHashCheckEnabled &&
|
||||
resulthash.length === 40
|
||||
) {
|
||||
//if its not 64 that means client is still using old hashing package
|
||||
if (req.ctx.configuration.results.objectHashCheckEnabled) {
|
||||
const serverhash = objectHash(result);
|
||||
if (serverhash !== resulthash) {
|
||||
Logger.logToDb(
|
||||
|
|
Loading…
Reference in a new issue