mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 05:24:22 +01:00
refactor: rewrite if statement
This commit is contained in:
@@ -224,7 +224,7 @@ const createStatusController: AppController = async (c) => {
|
||||
dittoZapSplit[zapPubkey].message,
|
||||
]);
|
||||
}
|
||||
if (pubkey in dittoZapSplit === false) {
|
||||
if (totalSplit && !dittoZapSplit[pubkey]) {
|
||||
tags.push(['zap', pubkey, Conf.relay, Math.max(0, 100 - totalSplit).toString()]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user