server: Fix CI build complaints (#4119)

- Ineffassign fixes.
- Spell check correction.
This commit is contained in:
Karthic Rao
2017-04-14 20:30:04 +05:30
committed by Harshavardhana
parent a7afa469e2
commit 5f065e2a96
4 changed files with 6 additions and 6 deletions

View File

@@ -86,7 +86,7 @@ func TestNewEndpoint(t *testing.T) {
} else if err == nil {
t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr)
} else {
match := false
var match bool
if strings.HasSuffix(testCase.expectedErr.Error(), errMsg) {
match = strings.HasSuffix(err.Error(), errMsg)
} else {