Skip to content

Commit

Permalink
Minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta committed Sep 29, 2015
1 parent 01bc313 commit f5b069e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/model/nodes/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ VersionNode.prototype.addItems = function (version) {
this.items.push(new nodes.post.PostNode(this, version, docs[item], item));
}, this);

if (version['showcase']) {
var showcaseItem = new nodes.showcase.ShowcaseNode(this, version, version['showcase']);
if (version.showcase) {
var showcaseItem = new nodes.showcase.ShowcaseNode(this, version, version.showcase);
this.items.push(showcaseItem);
}

Expand Down
4 changes: 2 additions & 2 deletions src/tasks/libraries-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ module.exports = {
// формируем списки на удаление директорий версий библиотек
// и на скачивание обновленных data.json файлов версий библиотек с MDS хранилища
return vow.all([
vow.resolve([].concat(diff.added).concat(diff.modified)),
vow.resolve([].concat(diff.removed).concat(diff.modified))
vow.resolve([].concat(diff.added, diff.modified)),
vow.resolve([].concat(diff.removed, diff.modified))
]);
})
.spread(function (downloadQueue, removeQueue) {
Expand Down

0 comments on commit f5b069e

Please sign in to comment.