summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--swig/Lasso.i3
1 files changed, 1 insertions, 2 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i
index 1e90501b..b6177c10 100644
--- a/swig/Lasso.i
+++ b/swig/Lasso.i
@@ -300,8 +300,7 @@ static void build_exception_msg(int errorCode, char *errorMsg) {
if (errorCode) {
char errorMsg[256];
int swig_error = SWIG_RuntimeError;
- if (errorCode == LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ ||
- errorCode == LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ) {
+ if (errorCode == LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ) {
swig_error = SWIG_ValueError;
}
build_exception_msg(errorCode, errorMsg);