Remove unnecessary nesting

This commit is contained in:
Blake Latchford 2024-11-15 19:48:32 -05:00
parent 1a06f88dfb
commit 975d443ccb

View File

@ -82,7 +82,7 @@ int32_t ExternalNotificationModule::runOnce()
{ {
if (!moduleConfig.external_notification.enabled) { if (!moduleConfig.external_notification.enabled) {
return INT32_MAX; // we don't need this thread here... return INT32_MAX; // we don't need this thread here...
} else { }
bool isPlaying = rtttl::isPlaying(); bool isPlaying = rtttl::isPlaying();
#ifdef HAS_I2S #ifdef HAS_I2S
@ -195,7 +195,6 @@ int32_t ExternalNotificationModule::runOnce()
} }
return EXT_NOTIFICATION_DEFAULT_THREAD_MS; return EXT_NOTIFICATION_DEFAULT_THREAD_MS;
}
} }
bool ExternalNotificationModule::wantPacket(const meshtastic_MeshPacket *p) bool ExternalNotificationModule::wantPacket(const meshtastic_MeshPacket *p)