mirror of
https://github.com/kidoman/embd
synced 2024-12-22 21:00:05 +01:00
minor cleanup
This commit is contained in:
parent
d171cfdc90
commit
c39476a12e
@ -80,8 +80,7 @@ func DetectHost() (Host, int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if major < 3 || (major == 3 && minor < 8) {
|
if major < 3 || (major == 3 && minor < 8) {
|
||||||
err = fmt.Errorf("embd: linux kernel versions lower than 3.8 are not supported. you have %v.%v.%v", major, minor, patch)
|
return HostNull, 0, fmt.Errorf("embd: linux kernel versions lower than 3.8 are not supported. you have %v.%v.%v", major, minor, patch)
|
||||||
return HostNull, 0, err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
node, err := nodeName()
|
node, err := nodeName()
|
||||||
@ -98,8 +97,7 @@ func DetectHost() (Host, int, error) {
|
|||||||
case "beaglebone":
|
case "beaglebone":
|
||||||
host = HostBBB
|
host = HostBBB
|
||||||
default:
|
default:
|
||||||
err = fmt.Errorf("embd: your host %q is not supported at this moment. please request support at https://github.com/kidoman/embd/issues", node)
|
return HostNull, 0, fmt.Errorf("embd: your host %q is not supported at this moment. please request support at https://github.com/kidoman/embd/issues", node)
|
||||||
return HostNull, 0, err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return host, rev, nil
|
return host, rev, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user