mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[upgrade config] Use descriptive conditions
This commit is contained in:
parent
3de3f98ddd
commit
6bbcdeafe5
1 changed files with 3 additions and 2 deletions
|
@ -26,8 +26,9 @@ module.exports = function (server) {
|
|||
|
||||
// if we already have a the current version in the index then we need to stop
|
||||
if (_.find(response.hits.hits, function currentVersion(hit) {
|
||||
return hit._id !== '@@version' &&
|
||||
hit._id === config.get('kibana.package.version');
|
||||
var versionSpecified = hit._id !== '@@version';
|
||||
var indexVersionMatchesConfig = hit._id === config.get('kibana.package.version');
|
||||
return versionSpecified && indexVersionMatchesConfig;
|
||||
})) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue