Skip to content

Commit

Permalink
tsc: TrimRight when get current clock source
Browse files Browse the repository at this point in the history
  • Loading branch information
templexxx committed Feb 14, 2022
1 parent fc01e48 commit b41ffac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io/ioutil"
"os"
"runtime"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -129,5 +130,5 @@ func GetCurrentClockSource() string {
if err != nil {
return ""
}
return string(d)
return strings.TrimRight(string(d), "\n")
}

0 comments on commit b41ffac

Please sign in to comment.