Remove unnecessary empty lines

pull/1121/head
Ville Skyttä 4 years ago
parent a9b1ce2dec
commit 65616500e8

@ -55,7 +55,6 @@ func NumProcs() (uint64, error) {
}
func BootTimeWithContext(ctx context.Context) (uint64, error) {
system, role, err := Virtualization()
if err != nil {
return 0, err
@ -202,7 +201,6 @@ func VirtualizationWithContext(ctx context.Context) (string, string, error) {
if PathExists(filepath.Join(filename, "self", "status")) {
contents, err := ReadLines(filepath.Join(filename, "self", "status"))
if err == nil {
if StringsContains(contents, "s_context:") ||
StringsContains(contents, "VxID:") {
system = "linux-vserver"

@ -103,7 +103,6 @@ func MiscWithContext(ctx context.Context) (*MiscStat, error) {
default:
continue
}
}
procsTotal, err := getProcsTotal()

@ -70,7 +70,6 @@ func TestMiscStatString(t *testing.T) {
}
func BenchmarkLoad(b *testing.B) {
loadAvg := func(t testing.TB) {
v, err := Avg()
skipIfNotImplementedErr(t, err)

Loading…
Cancel
Save