mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Remove unused es_bool file.
This commit is contained in:
parent
aa69744f67
commit
72c4179cea
3 changed files with 0 additions and 40 deletions
|
@ -4,7 +4,6 @@
|
|||
*/
|
||||
|
||||
import _ from 'lodash';
|
||||
import esBool from './es_bool';
|
||||
import isEsCompatibleWithKibana from './is_es_compatible_with_kibana';
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
const map = {
|
||||
'false': false,
|
||||
'off': false,
|
||||
'no': false,
|
||||
'0': false,
|
||||
'true': true,
|
||||
'on': true,
|
||||
'yes': true,
|
||||
'1': true
|
||||
};
|
||||
module.exports = function (str) {
|
||||
const bool = map[String(str)];
|
||||
if (typeof bool !== 'boolean') {
|
||||
throw new TypeError('"' + str + '" does not map to an esBool');
|
||||
}
|
||||
return bool;
|
||||
};
|
|
@ -1,22 +0,0 @@
|
|||
define(function () {
|
||||
let map = {
|
||||
'false': false,
|
||||
'off': false,
|
||||
'no': false,
|
||||
'0': false,
|
||||
'true': true,
|
||||
'on': true,
|
||||
'yes': true,
|
||||
'1': true
|
||||
};
|
||||
|
||||
return function (str) {
|
||||
let bool = map[String(str)];
|
||||
|
||||
if (typeof bool !== 'boolean') {
|
||||
throw new TypeError('"' + str + '" does not map to an esBool');
|
||||
}
|
||||
|
||||
return bool;
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue