Wrap case statement to fix eslint issue

This commit is contained in:
Rob Garrison 2017-07-14 04:42:55 -05:00
parent 81484bbc37
commit 11d8687af7

View File

@ -299,8 +299,7 @@ function acmeEventListener(event) {
case 'tabSize':
CodeMirror.setOption('indentUnit', Number(value));
break;
/* eslint-disable no-case-declarations */
case 'theme':
case 'theme': {
const themeLink = document.getElementById('cm-theme');
// use non-localized 'default' internally
if (!value || value == 'default' || value == t('defaultTheme')) {
@ -327,7 +326,7 @@ function acmeEventListener(event) {
}, 100);
})();
return;
/* eslint-enable no-case-declarations */
}
case 'autocompleteOnTyping':
editors.forEach(cm => {
const onOff = el.checked ? 'on' : 'off';