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

Michael Stefaniuc mstefani at redhat.de
Fri Dec 5 03:41:56 CST 2014


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



More information about the wine-patches mailing list