Browse Source

Remove unnecessary return.

The return after the conditional branch will achieve the same thing.
Sandu Liviu Catalin 7 years ago
parent
commit
960c5da6b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      squirrel/sqapi.cpp

+ 1 - 1
squirrel/sqapi.cpp

@@ -1181,7 +1181,7 @@ SQRESULT sq_call(HSQUIRRELVM v,SQInteger params,SQBool retval,SQBool raiseerror)
             v->Pop(params);//pop args
             v->Pop(params);//pop args
         }
         }
         if(retval){
         if(retval){
-            v->Push(res); return SQ_OK;
+            v->Push(res);
         }
         }
         return SQ_OK;
         return SQ_OK;
     }
     }