1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

refactor: remove redundant check

This commit is contained in:
Ash Keel 2023-05-03 14:08:02 +02:00
parent afac937980
commit 4653f6b75b
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E

View file

@ -200,7 +200,7 @@ export const initializeExtensions = createAsyncThunk(
await api.client.subscribePrefix(extensionPrefix, (newValue, newKey) => { await api.client.subscribePrefix(extensionPrefix, (newValue, newKey) => {
const name = newKey.substring(extensionPrefix.length); const name = newKey.substring(extensionPrefix.length);
// Check for deleted // Check for deleted
if (!newValue || newValue === '') { if (!newValue) {
void dispatch(extensionsReducer.actions.extensionRemoved(name)); void dispatch(extensionsReducer.actions.extensionRemoved(name));
return; return;
} }