summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit/test_network_connectivity_service.js
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/unit/test_network_connectivity_service.js')
-rw-r--r--netwerk/test/unit/test_network_connectivity_service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/netwerk/test/unit/test_network_connectivity_service.js b/netwerk/test/unit/test_network_connectivity_service.js
index 6774e79e34..7604c263c6 100644
--- a/netwerk/test/unit/test_network_connectivity_service.js
+++ b/netwerk/test/unit/test_network_connectivity_service.js
@@ -15,7 +15,7 @@ const { HttpServer } = ChromeUtils.importESModule(
* @returns {Promise} A promise that fulfills when the notification is fired.
*/
function promiseObserverNotification(topicName, matchFunc) {
- return new Promise((resolve, reject) => {
+ return new Promise(resolve => {
Services.obs.addObserver(function observe(subject, topic, data) {
let matches = typeof matchFunc != "function" || matchFunc(subject, data);
if (!matches) {