diff --git a/maps.md b/maps.md index bb7fd1472..eec583ecf 100644 --- a/maps.md +++ b/maps.md @@ -374,12 +374,6 @@ func assertError(t *testing.T, got, want error) { if got != want { t.Errorf("got %q want %q", got, want) } - if got == nil { - if want == nil { - return - } - t.Fatal("expected to get an error.") - } } ```