Style: Unify the if statement format and some other format.
@@ -424,6 +424,7 @@ void BoatWalletUnload(BSINT32 wallet_index)
default:
BoatLog(BOAT_LOG_VERBOSE, "Unknown blockchain protocol type: %u.", protocol);
protocol = BOAT_PROTOCOL_UNKNOWN;
+ break;
}
if (protocol != BOAT_PROTOCOL_UNKNOWN)
@@ -446,8 +447,8 @@ void *BoatGetWalletByIndex(BSINT32 wallet_index)
{
if (wallet_index >= 0 && wallet_index < BOAT_MAX_WALLET_NUM)
{
- if( g_boat_iot_sdk_context.wallet_list[wallet_index].is_used != BOAT_FALSE
- && g_boat_iot_sdk_context.wallet_list[wallet_index].wallet_ptr != NULL )
+ if (g_boat_iot_sdk_context.wallet_list[wallet_index].is_used != BOAT_FALSE &&
+ g_boat_iot_sdk_context.wallet_list[wallet_index].wallet_ptr != NULL)
{
return(g_boat_iot_sdk_context.wallet_list[wallet_index].wallet_ptr);
}
