From b560019af4cb6bbe647097eb48fd09878e7f9036 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 16 Jan 2021 15:35:21 -0500 Subject: [PATCH] Shorten options upgrade list (#1252) --- ext/bg/js/options.js | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index a8cdd885..5299ecd2 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -458,38 +458,14 @@ class OptionsUtil { _getVersionUpdates() { return [ - { - async: false, - update: this._updateVersion1.bind(this) - }, - { - async: false, - update: this._updateVersion2.bind(this) - }, - { - async: true, - update: this._updateVersion3.bind(this) - }, - { - async: true, - update: this._updateVersion4.bind(this) - }, - { - async: false, - update: this._updateVersion5.bind(this) - }, - { - async: true, - update: this._updateVersion6.bind(this) - }, - { - async: false, - update: this._updateVersion7.bind(this) - }, - { - async: true, - update: this._updateVersion8.bind(this) - } + {async: false, update: this._updateVersion1.bind(this)}, + {async: false, update: this._updateVersion2.bind(this)}, + {async: true, update: this._updateVersion3.bind(this)}, + {async: true, update: this._updateVersion4.bind(this)}, + {async: false, update: this._updateVersion5.bind(this)}, + {async: true, update: this._updateVersion6.bind(this)}, + {async: false, update: this._updateVersion7.bind(this)}, + {async: true, update: this._updateVersion8.bind(this)} ]; }