Simplify the error checking in parseKeyAction

This commit is contained in:
Eric Tang
2017-07-21 12:43:12 -07:00
parent 7deaedb397
commit d14a7565a8

View File

@@ -134,10 +134,8 @@ static parser_error_t parseKeyAction(key_action_t *keyAction, config_buffer_t *b
return parseMouseAction(keyAction, buffer);
case SerializedKeyActionType_PlayMacro:
return parsePlayMacroAction(keyAction, buffer);
default:
return ParserError_InvalidSerializedKeyActionType;
}
return ParserError_Success;
return ParserError_InvalidSerializedKeyActionType;
}
static parser_error_t parseKeyActions(uint8_t targetLayer, config_buffer_t *buffer, uint8_t moduleId, uint8_t pointerRole) {