Module: wine Branch: master Commit: 59af425d53e53a2e21ad3405b1b9c16f8a68a355 URL: http://source.winehq.org/git/wine.git/?a=commit;h=59af425d53e53a2e21ad3405b1... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 5 10:41:56 2014 +0100 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 c98f4fe..b28c54f 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;