Skip to content

Commit

Permalink
Merge pull request #886 from ersonp/fix/setup-node
Browse files Browse the repository at this point in the history
Fix nil pointer dereference
  • Loading branch information
jdknives authored Sep 20, 2021
2 parents 9e363ef + d22f3d2 commit 2bfca2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/setup/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func ReserveRouteIDs(ctx context.Context, log logrus.FieldLogger, dialer network
}()

if err = idR.ReserveIDs(ctx); err != nil {
return nil, fmt.Errorf("failed to reserve route ids: %w", err)
return idR, fmt.Errorf("failed to reserve route ids: %w", err)
}
return idR, nil
}
Expand Down

0 comments on commit 2bfca2d

Please sign in to comment.