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:
parent
afac937980
commit
4653f6b75b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue