mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
should be != null check
This commit is contained in:
parent
bd381073b0
commit
729965aae2
@ -37,7 +37,7 @@ export class ImportCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const err = await this.importService.import(importer, contents, null);
|
const err = await this.importService.import(importer, contents, null);
|
||||||
if (err == null) {
|
if (err != null) {
|
||||||
return Response.badRequest(err.message);
|
return Response.badRequest(err.message);
|
||||||
}
|
}
|
||||||
const res = new MessageResponse('Imported ' + filepath, null);
|
const res = new MessageResponse('Imported ' + filepath, null);
|
||||||
|
Loading…
Reference in New Issue
Block a user