mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
fcall to just Q()
This commit is contained in:
@@ -402,9 +402,7 @@ function initCryptoService(constantsService) {
|
||||
|
||||
CryptoService.prototype.encrypt = function (plainValue, key, plainValueEncoding) {
|
||||
if (plainValue === null || plainValue === undefined) {
|
||||
return Q.fcall(function () {
|
||||
return null;
|
||||
});
|
||||
return Q(null);
|
||||
}
|
||||
|
||||
plainValueEncoding = plainValueEncoding || 'utf8';
|
||||
|
||||
Reference in New Issue
Block a user