aboutsummaryrefslogtreecommitdiff
path: root/dev_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'dev_linux.go')
-rw-r--r--dev_linux.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/dev_linux.go b/dev_linux.go
index dd8a5a3..66ab472 100644
--- a/dev_linux.go
+++ b/dev_linux.go
@@ -1,9 +1,5 @@
package robo
func Open() (Device, error) {
- dev, err := NewLP("/dev/usb/lp0")
- if err != nil {
- return Device{}, nil
- }
- return Device{dev}
+ return NewLP("/dev/usb/lp0")
}