server: Fix CI build complaints (#4119)
- Ineffassign fixes. - Spell check correction.
This commit is contained in:
committed by
Harshavardhana
parent
a7afa469e2
commit
5f065e2a96
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user