mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
Re-enable rule no-else-return (#10861)
This commit is contained in:
committed by
GitHub
parent
76275ec410
commit
2d8f4e3aaf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user