Skip to content

Commit

Permalink
last linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Nov 14, 2024
1 parent 168f957 commit d65a4c3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 5m --verbose -D unused
skip-cache: false
skip-pkg-cache: false
skip-build-cache: false
Expand Down
20 changes: 0 additions & 20 deletions .golangci.yml

This file was deleted.

4 changes: 2 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ func (t *Tree) PrintGraphvizFirstNLevels(fromRoot []byte, untilLvl int) error {
}
w := bytes.NewBufferString("")
if _, err := fmt.Fprintf(w,
"--------\nGraphviz of the Tree with Root "+hex.EncodeToString(fromRoot)+":\n"); err != nil {
"--------\nGraphviz of the Tree with Root %s:\n", hex.EncodeToString(fromRoot)); err != nil {
return err
}
err := t.GraphvizFirstNLevels(w, fromRoot, untilLvl)
Expand All @@ -1564,7 +1564,7 @@ func (t *Tree) PrintGraphvizFirstNLevels(fromRoot []byte, untilLvl int) error {
return err
}
if _, err := fmt.Fprintf(w,
"End of Graphviz of the Tree with Root "+hex.EncodeToString(fromRoot)+"\n--------\n"); err != nil {
"End of Graphviz of the Tree with Root %s\n--------\n", hex.EncodeToString(fromRoot)); err != nil {
return err
}

Expand Down
6 changes: 3 additions & 3 deletions vt.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func (n *node) computeHashes(currLvl, maxLvl int, p *params, pairs [][2][]byte)
return pairs, nil
}

//nolint:all
//nolint:unused
func (t *vt) graphviz(w io.Writer) error {
if _, err := fmt.Fprintf(w, `digraph hierarchy {
node [fontname=Monospace,fontsize=10,shape=box]
Expand All @@ -641,7 +641,7 @@ node [fontname=Monospace,fontsize=10,shape=box]
return nil
}

//nolint:all
//nolint:unused
func (n *node) graphviz(w io.Writer, p *params, nEmpties int) (int, error) {
if n == nil {
return nEmpties, nil
Expand Down Expand Up @@ -720,7 +720,7 @@ func (n *node) graphviz(w io.Writer, p *params, nEmpties int) (int, error) {
return nEmpties, nil
}

//nolint:all
//nolint:unused
func (t *vt) printGraphviz() error {
w := bytes.NewBufferString("")
if _, err := fmt.Fprintf(w,
Expand Down

0 comments on commit d65a4c3

Please sign in to comment.