Skip to content

Commit f29b9b9

Browse files
committed
Updating to fix comments
1 parent 2bda7d8 commit f29b9b9

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

client/controllers/abstractLayouts/controllerInstanceLayout.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ function ControllerInstanceLayout(
2323
};
2424
dataInstanceLayout.data.logoutURL = configLogoutURL();
2525
fetchUser(function(err, user) {
26-
if (err) {
27-
return errs.handler(err);
28-
}
26+
if (err) { return errs.handler(err); }
2927
thisUser = user;
3028
resolveInstanceFetch(
3129
$stateParams.userName
@@ -45,18 +43,14 @@ function ControllerInstanceLayout(
4543
},
4644
function (instances, queriedUsername, cb) {
4745
if (username === keypather.get($rootScope, 'dataApp.data.activeAccount.oauthName()')) {
48-
if ($rootScope.dataApp.data.instances !== instances) {
49-
$rootScope.dataApp.data.instances = instances;
50-
}
46+
$rootScope.dataApp.data.instances = instances;
5147
$rootScope.dataApp.state.loadingInstances = false;
5248
$rootScope.safeApply(cb);
5349
} else {
5450
cb();
5551
}
5652
}
57-
], function (err) {
58-
if (err) { return errs.handler(err); }
59-
});
53+
], errs.handler);
6054
}
6155

6256
var instanceListUnwatcher = $scope.$on('INSTANCE_LIST_FETCH', function(event, username) {

test/unit/directives/directiveEditRepoCommit.unit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe('directiveEditRepoCommit'.bold.underline.blue, function() {
211211
var $el = ctx.element[0]
212212
.querySelector('.commit.load > time.commit-time');
213213
expect($el).to.be.ok;
214-
expect($el.innerText).to.equal('3 months ago');
214+
expect($el.innerText).to.match(/\d months ago/);
215215
});
216216

217217
});

0 commit comments

Comments
 (0)