Merge pull request #71294 from Chenditang/verify-golint

Fix golint verify errors.
pull/564/head
k8s-ci-robot 2018-11-29 21:45:02 -08:00 committed by GitHub
commit 2fd1949b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -353,10 +353,10 @@ func (m *FakeMetadata) GetMetadata(key string) (string, error) {
} }
} }
return "", nil
} else {
return "", nil return "", nil
} }
return "", nil
} }
// FakeELB is a fake ELB client used for testing // FakeELB is a fake ELB client used for testing

View File

@ -201,9 +201,9 @@ func PathExists(path string) (bool, error) {
return false, nil return false, nil
} else if IsCorruptedMnt(err) { } else if IsCorruptedMnt(err) {
return true, err return true, err
} else {
return false, err
} }
return false, err
} }
// IsCorruptedMnt return true if err is about corrupted mount point // IsCorruptedMnt return true if err is about corrupted mount point