Bug 1280883 - ESLint shows unreachable statement for xbl fields. r=miker

This commit is contained in:
Philipp Kewisch 2016-06-27 12:24:57 +02:00
parent d086fee2a2
commit 3ca9eb9112

View File

@ -263,8 +263,9 @@ module.exports = {
addSyntheticLine(indent(3) + `get ${item.attributes.name}() {`, item.textLine);
// TODO This will probably break some style rules when. We need
// to inject this next to the first non-whitespace character
addSyntheticLine(indent(4) + `return`, item.textLine);
addNodeLines(item, 4);
addSyntheticLine(indent(4) + `return (`, item.textLine);
addNodeLines(item, 5);
addSyntheticLine(indent(4) + `);`, item.textLine);
addSyntheticLine(indent(3) + `},`, item.textEndLine);
break;
}