Merge pull request #736 from Osmose/misplaced-comment

Fix mis-placed comment.
This commit is contained in:
Andy Mikulski 2017-05-11 07:13:07 -06:00 коммит произвёл GitHub
Родитель fbfd7a3843 081c7fe7bb
Коммит 04374ab223
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -41,8 +41,6 @@
* unset.
* @property {PreferenceBranchType} preferenceBranchType
* Controls how we modify the preference to affect the client.
* @rejects {Error}
* If the given preferenceType does not match the existing stored preference.
*
* If "default", when the experiment is active, the default value for the
* preference is modified on startup of the add-on. If "user", the user value
@ -173,8 +171,9 @@ this.PreferenceExperiments = {
* @param {string|integer|boolean} experiment.preferenceValue
* @param {PreferenceBranchType} experiment.preferenceBranchType
* @rejects {Error}
* If an experiment with the given name already exists, or if an experiment
* for the given preference is active.
* - If an experiment with the given name already exists
* - if an experiment for the given preference is active
* - If the given preferenceType does not match the existing stored preference
*/
async start({name, branch, preferenceName, preferenceValue, preferenceBranchType, preferenceType}) {
log.debug(`PreferenceExperiments.start(${name}, ${branch})`);
@ -221,7 +220,8 @@ this.PreferenceExperiments = {
if (prevPrefType !== Services.prefs.PREF_INVALID && prevPrefType !== givenPrefType) {
throw new Error(
`Previous preference value is of type "${prevPrefType}", but was given "${givenPrefType}" (${preferenceType})`
`Previous preference value is of type "${prevPrefType}", but was given ` +
`"${givenPrefType}" (${preferenceType})`
);
}