Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jan 12, 2025
1 parent 3ee1e7a commit 81b418c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ func main() {
if err := cmd.RootCmd.Execute(); err != nil {
log.Fatal(err)
}
}
}
15 changes: 0 additions & 15 deletions pkg/renderer/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,6 @@ type Node interface {
Render(w io.Writer) error
}

type statefulWriter struct {
w io.Writer
err error
}

// Write is a node that writes to the stateful writer.
func (w *statefulWriter) Write(p []byte) {
if w.err != nil {
return
}
_, w.err = w.w.Write(p)
}

var _ Node = (*stringer)(nil)

type stringer struct {
text string
}
Expand Down

0 comments on commit 81b418c

Please sign in to comment.