Re-enable rule no-else-return (#10861)

This commit is contained in:
Kamil Gabryjelski
2020-09-14 22:00:07 +02:00
committed by GitHub
parent 76275ec410
commit 2d8f4e3aaf
31 changed files with 135 additions and 70 deletions

View File

@@ -93,13 +93,17 @@ export function supersetURL(rootUrl, getParams = {}) {
export function optionLabel(opt) {
if (opt === null) {
return NULL_STRING;
} else if (opt === '') {
}
if (opt === '') {
return '<empty string>';
} else if (opt === true) {
}
if (opt === true) {
return '<true>';
} else if (opt === false) {
}
if (opt === false) {
return '<false>';
} else if (typeof opt !== 'string' && opt.toString) {
}
if (typeof opt !== 'string' && opt.toString) {
return opt.toString();
}
return opt;