Commit b894f994 authored by Makoto Kato's avatar Makoto Kato
Browse files

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
parent ab7030d6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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__);
  }
}