Skip to content

Commit d0f46e2

Browse files
authored
Merge pull request #419 from jaypipes/jaypipes/windows-accel
make pkg/accelerator.Info() return empty not error
2 parents ffa8970 + 8259033 commit d0f46e2

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)