1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00

minor cleanup

This commit is contained in:
Karan Misra 2014-03-23 15:48:09 +05:30
parent d171cfdc90
commit c39476a12e

View File

@ -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