Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix up status command for tf.exe support #123

Merged
merged 2 commits into from
Feb 23, 2017
Merged

Conversation

jeffyoung
Copy link
Contributor

Also add unit tests for coverage

Also add unit tests for coverage
continue;
}

if (line.indexOf("--------") === 0 || line.toLowerCase().startsWith("detected changes: ")) {
Copy link
Member

Choose a reason for hiding this comment

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

seems like you could use startswith instead of indexOf === 0 here. It would make it a bit easier to read.

case "change": return "changeType";
case "workspace": return "workspace";
}
return undefined;
}

private add(changes: IPendingChange[], newChange: IPendingChange, ignoreFolders: boolean) {
Copy link
Member

@jpricket jpricket Feb 23, 2017

Choose a reason for hiding this comment

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

Doesn't look like you are using add or convert at all

Copy link
Member

@jpricket jpricket left a comment

Choose a reason for hiding this comment

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

Very Nice!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants