Skip to content

Commit

Permalink
Pass name
Browse files Browse the repository at this point in the history
  • Loading branch information
bannzai committed Jan 12, 2022
1 parent 5de6fe3 commit 85b3c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodecheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func run(excludes string) func(pass *gqlanalysis.Pass) (interface{}, error) {

for _, t := range needToNodeTypes {
// Skip private type. e.g) __Directive, __Enum ...
if strings.HasPrefix("__") {
if strings.HasPrefix(t.Name, "__") {
break
}
pass.Reportf(t.Position, "%+v should conform to Node", t.Name)
Expand Down

0 comments on commit 85b3c85

Please sign in to comment.