Skip to content

Commit 75eb44b

Browse files
committed
fix linter error
Signed-off-by: Ajay Mishra <[email protected]>
1 parent f53c50b commit 75eb44b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/translate/output.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ func ToSLURM(wr io.Writer, root *common.Vertex) error {
5656

5757
for _, sw := range parents {
5858
if _, ok := leaves[sw.ID]; !ok {
59-
writeSwitch(wr, sw)
59+
err := writeSwitch(wr, sw)
60+
if err != nil {
61+
return fmt.Errorf("failed to write switch %s: %w", sw.ID, err)
62+
}
6063
}
6164
}
6265
var comment, switchName string

0 commit comments

Comments
 (0)