Here's a function I'm working with:
archive = (): ng.IPromise<any> => {
var self = this;
return self.setStatus()
.then(
() => { }
)
.finally(() => {
self.controls = self.getFilteredTestStatusActions(1, 'Admin');
});
};
I want to update the controls once this function completes successfully or encounters an error. Should I keep the .then construct in this case?