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;
}
default:
break
default: {
[MPPCommonUtils
createCustomError:error
withCode:MPPTasksErrorCodeInvalidArgumentError
description:
@"Unrecognized running mode"];
return nil;
}
}
_runningMode = runningMode;