Fix PR code smells

This commit is contained in:
jbr7rr 2023-08-31 08:45:03 +02:00
parent 5766738f9b
commit be81bb886f

View file

@ -1254,8 +1254,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
if (expiryReminderDelay.isNegative) { if (expiryReminderDelay.isNegative) {
aapsLogger.warn( aapsLogger.warn(
LTag.PUMPBTCOMM, LTag.PUMPBTCOMM,
"updateAlertConfiguration negative " + "updateAlertConfiguration negative expiryAlertDuration=$expiryReminderDelay"
"expiryAlertDuration=$expiryReminderDelay"
) )
PumpEnactResult(injector).success(false).enacted(false) PumpEnactResult(injector).success(false).enacted(false)
} }
@ -1264,8 +1263,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
if (expiryAlarmDelay.isNegative) { if (expiryAlarmDelay.isNegative) {
aapsLogger.warn( aapsLogger.warn(
LTag.PUMPBTCOMM, LTag.PUMPBTCOMM,
"updateAlertConfiguration negative " + "updateAlertConfiguration negative expiryAlarmDuration=$expiryAlarmDelay"
"expiryAlarmDuration=$expiryAlarmDelay"
) )
PumpEnactResult(injector).success(false).enacted(false) PumpEnactResult(injector).success(false).enacted(false)
} }
@ -1273,8 +1271,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
if (expiryImminentDelay.isNegative) { if (expiryImminentDelay.isNegative) {
aapsLogger.warn( aapsLogger.warn(
LTag.PUMPBTCOMM, LTag.PUMPBTCOMM,
"updateAlertConfiguration negative " + "updateAlertConfiguration negative expiryImminentDuration=$expiryImminentDelay"
"expiryImminentDuration=$expiryImminentDelay"
) )
PumpEnactResult(injector).success(false).enacted(false) PumpEnactResult(injector).success(false).enacted(false)
} }