jscript: Merge two if blocks with identical condition (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2014-12-05 10:41:56 +01:00 committed by Alexandre Julliard
parent 2db0a3d01e
commit 59af425d53
1 changed files with 0 additions and 2 deletions

View File

@ -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;