Skip to content

Commit 0e2a03c

Browse files
committed
Go fmt
1 parent b18ecd0 commit 0e2a03c

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

kernel_darwin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//+build darwin
1+
//go:build darwin
2+
// +build darwin
23

34
package sysinfo
45

kernel_linux.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//
33
// Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
44

5-
//+build linux
5+
//go:build linux
6+
// +build linux
67

78
package sysinfo
89

product.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,4 @@ func (si *SysInfo) getProductInfo() {
3939
if si.Product.Serial == "" {
4040
si.Product.Serial = slurpFile("/proc/device-tree/serial-number")
4141
}
42-
43-
4442
}

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func slurpFile(path string) string {
1717
}
1818

1919
// Trim spaces & \u0000 \uffff
20-
return strings.Trim( string(data), " \r\n\t\u0000\uffff")
20+
return strings.Trim(string(data), " \r\n\t\u0000\uffff")
2121
}
2222

2323
// Write one-liner text files, add newline, ignore errors (best effort).

0 commit comments

Comments
 (0)