Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary event emitter / event chain in Repository #1124

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

mattseddon
Copy link
Contributor

@mattseddon mattseddon commented Dec 6, 2021

3/5 master <- #1120 <- #1122 <- this <- #1123 <- #1125

Noticed this when preparing #1123. I had used a different treeDataChanged EventEmitters between the Repository and WorkspaceRepositories classes. I think the original reason for doing this would have been something to do with testing but we haven't used the Repository.onDidChangeTreeData event anywhere so it can be removed.

@mattseddon mattseddon self-assigned this Dec 6, 2021
@mattseddon mattseddon changed the base branch from master to nest-repo-files December 6, 2021 02:47
@mattseddon mattseddon marked this pull request as ready for review December 6, 2021 02:53
@@ -114,7 +114,7 @@ export class DecorationProvider implements FileDecorationProvider {
}
}

public setState = (state: DecorationState) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[F] Can't spy on the prototype if you use an arrow function.

Base automatically changed from nest-repo-files to master December 6, 2021 23:02
@mattseddon mattseddon force-pushed the remove-unnecessary-emitter branch from a7969dd to 55ee93f Compare December 6, 2021 23:04
@mattseddon mattseddon enabled auto-merge (squash) December 6, 2021 23:05
@codeclimate
Copy link

codeclimate bot commented Dec 6, 2021

Code Climate has analyzed commit 55ee93f and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.6% (-0.1% change).

View more on Code Climate.

@mattseddon mattseddon merged commit edea01c into master Dec 6, 2021
@mattseddon mattseddon deleted the remove-unnecessary-emitter branch December 6, 2021 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants