mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Remove null check in ElectronStorageService.Save (#464)
This commit is contained in:
@@ -46,9 +46,6 @@ export class ElectronStorageService implements StorageService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
save(key: string, obj: any): Promise<any> {
|
save(key: string, obj: any): Promise<any> {
|
||||||
if (obj == null) {
|
|
||||||
return Promise.resolve();
|
|
||||||
}
|
|
||||||
if (obj instanceof Set) {
|
if (obj instanceof Set) {
|
||||||
obj = Array.from(obj);
|
obj = Array.from(obj);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user