Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienaury committed Mar 21, 2024
1 parent 173cf45 commit 9086d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/silo/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func NewDriver(backend Backend, writer DumpWriter) *Driver {
}
}

//nolint:cyclop
func (d *Driver) Dump() error {
nodes, _ := d.ReadAllNodes()
links, _ := d.ReadAllLinks()
Expand All @@ -54,7 +55,7 @@ func (d *Driver) Dump() error {
}

for _, link := range links {
if err := grph.AddEdge(link.E1.String(), link.E2.String()); err != nil && !errors.Is(err, graph.ErrEdgeAlreadyExists) {
if err := grph.AddEdge(link.E1.String(), link.E2.String()); err != nil && !errors.Is(err, graph.ErrEdgeAlreadyExists) { //nolint:lll
return fmt.Errorf("%w", err)
}
}
Expand Down

0 comments on commit 9086d1d

Please sign in to comment.