No need to return args as part of task.get

This reverts commit 831e22b4ff.
This reverts commit 6774514bd2.
This commit is contained in:
Girish Ramakrishnan
2019-12-06 08:40:16 -08:00
parent 2ffb32ae60
commit ffeb484a10
4 changed files with 14 additions and 3 deletions

View File

@@ -648,6 +648,7 @@ function checkAppState(app, state) {
if (app.taskId) return new BoxError(BoxError.BAD_STATE, `Locked by task ${app.taskId} : ${app.installationState} / ${app.runState}`);
if (app.installationState === exports.ISTATE_ERROR) {
// allow task to be called again if that was the errored task
if (app.error.installationState === state) return null;
// allow uninstall from any state