Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed May 30, 2023
1 parent 26060f7 commit d2bd368
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/cmd/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,17 +513,17 @@ func (desc *moduleDescriptor) Format(w fmt.State, _ rune) {
if len(desc.imports.functions)+len(desc.exports.functions) > 0 {
fmt.Fprintf(w, "\n")
fw := textprint.NewTableWriter[functionDefinition](w)
fw.Write(desc.imports.functions)
fw.Write(desc.exports.functions)
fw.Close()
_, _ = fw.Write(desc.imports.functions)
_, _ = fw.Write(desc.exports.functions)
_ = fw.Close()
}

if len(desc.imports.memories)+len(desc.exports.memories) > 0 {
fmt.Fprintf(w, "\n")
mw := textprint.NewTableWriter[memoryDefinition](w)
mw.Write(desc.imports.memories)
mw.Write(desc.exports.memories)
mw.Close()
_, _ = mw.Write(desc.imports.memories)
_, _ = mw.Write(desc.exports.memories)
_ = mw.Close()
}
}

Expand Down

0 comments on commit d2bd368

Please sign in to comment.