mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Merge pull request #4484 from jbudz/upgrade-config
[upgrade config] Use descriptive conditions
This commit is contained in:
commit
689d65d387
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