Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieMcKinstry committed Nov 9, 2022
1 parent d946507 commit e1ea0ac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/codegen/nodejs/gen.go
Expand Up @@ -1463,20 +1463,14 @@ func (mod *modContext) genHeader(w io.Writer, imports []string, externalImports
sort.Strings(modules)

for _, module := range modules {
// var modulePath = path.Join(mod.getRelativePath(), module)
fmt.Fprintf(w, "import { ")
// TODO: Add use the relative root here instead of just ..
for i, name := range importedTypes[module].SortedValues() {
if i > 0 {
fmt.Fprint(w, ", ")
}
fmt.Fprint(w, name)
}
fmt.Fprintf(w, " } from \"%s\";\n", module)
fmt.Fprintf(w, "\n// module = %s\n", module)
fmt.Fprintf(w, "\n// base = %s\n", path.Base(module))
fmt.Fprintf(w, "\n// mod.mod = %s\n", mod.mod)
// fmt.Fprintf(w, "\n// modulePath = %s\n", modulePath)
}
fmt.Fprintf(w, "\n")
}
Expand Down

0 comments on commit e1ea0ac

Please sign in to comment.