Skip to content

Commit 8259033

Browse files
committed
make pkg/accelerator.Info() return empty not error
Simply makes the Windows Accelerator.Info() return an empty Info struct instead of erroring out with a not-implemented error. Issue #418 Signed-off-by: Jay Pipes <jaypipes@gmail.com>
1 parent ffa8970 commit 8259033

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

pkg/accelerator/accelerator_stub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !linux
2-
// +build !linux
1+
//go:build !linux && !windows
2+
// +build !linux,!windows
33

44
// Use and distribution licensed under the Apache license version 2.
55
//
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Use and distribution licensed under the Apache license version 2.
2+
//
3+
// See the COPYING file in the root project directory for full text.
4+
//
5+
6+
package accelerator
7+
8+
func (i *Info) load() error {
9+
i.Devices = []*AcceleratorDevice{}
10+
return nil
11+
}

0 commit comments

Comments
 (0)