Skip to content

Commit

Permalink
feat: restore returning struct from New()
Browse files Browse the repository at this point in the history
  • Loading branch information
ardrabczyk authored and Edholm committed Sep 28, 2023
1 parent d98f4cd commit 1c5bf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/candevice/device_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type CanDevice interface {
}

// Creates a handle to a CAN device specified by name, e.g. can0.
func New(deviceName string) (CanDevice, error) {
func New(deviceName string) (*Device, error) {
iface, err := net.InterfaceByName(deviceName)
if err != nil {
return nil, err
Expand Down

0 comments on commit 1c5bf36

Please sign in to comment.