From 59af425d53e53a2e21ad3405b1b9c16f8a68a355 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 5 Dec 2014 10:41:56 +0100 Subject: [PATCH] jscript: Merge two if blocks with identical condition (PVS-Studio). --- dlls/jscript/array.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/jscript/array.c b/dlls/jscript/array.c index c98f4fe2e03..b28c54f4423 100644 --- a/dlls/jscript/array.c +++ b/dlls/jscript/array.c @@ -505,9 +505,7 @@ static HRESULT Array_shift(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, unsign hres = set_length(jsthis, 0); if(FAILED(hres)) return hres; - } - if(!length) { if(r) *r = jsval_undefined(); return S_OK;