From 655e61ab32a72831e897a46cf8763577fa719612 Mon Sep 17 00:00:00 2001 From: Tw Date: Wed, 28 Jun 2017 09:28:16 +0800 Subject: [PATCH] markdown: fix ineffectual assignment CI issue Signed-off-by: Tw --- caddyhttp/markdown/markdown_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/caddyhttp/markdown/markdown_test.go b/caddyhttp/markdown/markdown_test.go index 94827d80..e8279da9 100644 --- a/caddyhttp/markdown/markdown_test.go +++ b/caddyhttp/markdown/markdown_test.go @@ -81,14 +81,17 @@ func TestMarkdown(t *testing.T) { req, err := http.NewRequest("GET", url, nil) if err != nil { t.Fatalf("Could not create HTTP request: %v", err) + return "" } rec := httptest.NewRecorder() code, err := md.ServeHTTP(rec, req) if err != nil { t.Fatal(err) + return "" } if code != http.StatusOK { t.Fatalf("Wrong status, expected: %d and got %d", http.StatusOK, code) + return "" } return rec.Body.String() } @@ -223,9 +226,11 @@ func TestTemplateReload(t *testing.T) { code, err := md.ServeHTTP(rec, req) if err != nil { t.Fatal(err) + return "" } if code != http.StatusOK { t.Fatalf("Wrong status, expected: %d and got %d", http.StatusOK, code) + return "" } return rec.Body.String() }