mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-24 13:48:56 +08:00
go fmt
This commit is contained in:
parent
66c5476fb7
commit
5153f22c9c
@ -35,12 +35,12 @@ func ReadLines(filename string) ([]string, error) {
|
||||
func byteToString(orig []byte) string {
|
||||
n := -1
|
||||
l := -1
|
||||
for i, b := range orig{
|
||||
for i, b := range orig {
|
||||
// skip left side null
|
||||
if l == -1 && b == 0{
|
||||
if l == -1 && b == 0 {
|
||||
continue
|
||||
}
|
||||
if l == -1{
|
||||
if l == -1 {
|
||||
l = i
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user