forked from mirrors/gecko-dev
Bug 1750142 - Don't return nullptr for LockScreenOrientation. r=geckoview-reviewers,calu
We should return rejected promise instead of `nullptr` to make simple. Differential Revision: https://phabricator.services.mozilla.com/D135980
This commit is contained in:
parent
ab7030d6e5
commit
b894f9949e
1 changed files with 2 additions and 1 deletions
|
|
@ -128,7 +128,8 @@ RefPtr<MozPromise<bool, bool, false>> LockScreenOrientation(
|
|||
}
|
||||
}
|
||||
default:
|
||||
return nullptr;
|
||||
NS_WARNING("Unsupported screen orientation type");
|
||||
return MozPromise<bool, bool, false>::CreateAndReject(false, __func__);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue