jscript: Merge two if blocks with identical condition (PVS-Studio).
This commit is contained in:
parent
2db0a3d01e
commit
59af425d53
|
@ -505,9 +505,7 @@ static HRESULT Array_shift(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, unsign
|
||||||
hres = set_length(jsthis, 0);
|
hres = set_length(jsthis, 0);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
}
|
|
||||||
|
|
||||||
if(!length) {
|
|
||||||
if(r)
|
if(r)
|
||||||
*r = jsval_undefined();
|
*r = jsval_undefined();
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue