Merge pull request #47408 from shiywang/follow-go-code-style

Automatic merge from submit-queue (batch tested with PRs 47416, 47408, 49697, 49860, 50162)

follow our go code style: error->err

Fixes https://github.com/kubernetes/kubernetes/issues/50189
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue
2017-08-05 03:22:54 -07:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

View File

@@ -24,8 +24,8 @@ func TestSchedulerConfiguratorFailure(t *testing.T) {
sc := &schedulerConfigurator{
// policyfile and algorithm are intentionally undefined.
}
_, error := sc.Create()
if error == nil {
_, err := sc.Create()
if err == nil {
t.Fatalf("Expected error message when creating with incomplete configurator.")
}
}