Skip to content

Conversation

@pengz1
Copy link
Member

@pengz1 pengz1 commented Jan 10, 2017

  • This PR is to address Felix's comments on ipxe progress
    API,_getActiveTask function and progress data type.
  • Code is udpated based on comments.
  • No feature impacted.

@pengz1
Copy link
Member Author

pengz1 commented Jan 10, 2017

 * This PR is to address Felix's comments on ipxe progress
   API,_getActiveTask function and progress data type.
 * Code is udpated based on comments.
 * No feature impacted.
.then(function (activeTask) {
return activeTask.taskId;
});
} else {
Copy link
Contributor

@brianparry brianparry Jan 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor suggestion, but I think this would be a little easier to read if written like:

return Promise.try(function() {
    if (nodeId) {
        return taskProtocol.activeTaskExists(nodeId)
        .then(function (activeTask) {
             return activeTask.taskId;
        });
    }
});

Copy link
Contributor

@brianparry brianparry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor style comment, but otherwise 👍

@brianparry brianparry merged commit 84e101d into RackHD:master Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants