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

fix(implementsPlugin): check if reflection has children #426

Merged
merged 1 commit into from
Feb 18, 2017
Merged

fix(implementsPlugin): check if reflection has children #426

merged 1 commit into from
Feb 18, 2017

Conversation

jiayihu
Copy link
Contributor

@jiayihu jiayihu commented Feb 17, 2017

Fixes #377

@@ -38,6 +38,9 @@ export class ImplementsPlugin extends ConverterComponent
}

var classMember:DeclarationReflection;

if (!classReflection.children) return;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should do the trick. The style does seem inconsistent though. I think the return should be on a new line like the other checks in this class.

@jiayihu
Copy link
Contributor Author

jiayihu commented Feb 18, 2017

@aciccarello fixed style.

@blakeembrey blakeembrey merged commit c873bb4 into TypeStrong:master Feb 18, 2017
@aciccarello
Copy link
Collaborator

Thanks for adjusting that. I know it's small but as someone who doesn't know all the code the consistency helps.

@jiayihu
Copy link
Contributor Author

jiayihu commented Feb 18, 2017

No problem, I always use linters in my projects so I perfectly understand 👍

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.

None yet

3 participants