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

remove trailing white space

This commit is contained in:
Karan Misra 2014-03-02 19:39:04 +05:30
parent 624ce1bb16
commit 1ebbe540a5
2 changed files with 1 additions and 9 deletions

View File

@ -22,7 +22,7 @@ func execOutput(name string, arg ...string) (output string, err error) {
if out, err = exec.Command(name, arg...).Output(); err != nil {
return
}
output = string(out)
output = strings.TrimSpace(string(out))
return
}

View File

@ -7,14 +7,6 @@ func TestKernelVersionParse(t *testing.T) {
versionStr string
major, minor, patch int
}{
{
"3.8",
3, 8, 0,
},
{
"3.7",
3, 7, 0,
},
{
"3.8.2",
3, 8, 2,