Added default case to running mode check

This commit is contained in:
Prianka Liz Kariat 2023-02-13 19:58:14 +05:30
parent 328fe4ed39
commit 1cd3c05fc5

View File

@ -58,8 +58,14 @@ using ::mediapipe::CalculatorGraphConfig;
} }
break; break;
} }
default: default: {
break [MPPCommonUtils
createCustomError:error
withCode:MPPTasksErrorCodeInvalidArgumentError
description:
@"Unrecognized running mode"];
return nil;
}
} }
_runningMode = runningMode; _runningMode = runningMode;