From 960c5da6b93c8a68a1ee2ae450c2d440f23b64b5 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin <2294815+iSLC@users.noreply.github.com> Date: Wed, 3 Oct 2018 21:33:21 +0300 Subject: [PATCH] Remove unnecessary return. The return after the conditional branch will achieve the same thing. --- squirrel/sqapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squirrel/sqapi.cpp b/squirrel/sqapi.cpp index e91e685..6bd723f 100644 --- a/squirrel/sqapi.cpp +++ b/squirrel/sqapi.cpp @@ -1181,7 +1181,7 @@ SQRESULT sq_call(HSQUIRRELVM v,SQInteger params,SQBool retval,SQBool raiseerror) v->Pop(params);//pop args } if(retval){ - v->Push(res); return SQ_OK; + v->Push(res); } return SQ_OK; }