Skip to content

Commit

Permalink
Update resolver_plugin.go
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout authored Jan 4, 2021
1 parent 9718516 commit f17b21c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions resolver_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,10 @@ func (m *ResolverPlugin) generateSingleFile(data *codegen.Data, models []*Model,
}

func buildImportPath(rootImportPath, directory string) string {
fmt.Println(rootImportPath, directory)

index := strings.Index(directory, rootImportPath)
if index > 0 {
return directory[index:]
}

return directory
}

Expand Down

0 comments on commit f17b21c

Please sign in to comment.