Commit ecf91f52 authored by Tobias Weingartner's avatar Tobias Weingartner

Fix gofmt -s and ineffassign.

parent b541c717
...@@ -29,7 +29,7 @@ func TestMarkdown(t *testing.T) { ...@@ -29,7 +29,7 @@ func TestMarkdown(t *testing.T) {
Renderer: blackfriday.HtmlRenderer(0, "", ""), Renderer: blackfriday.HtmlRenderer(0, "", ""),
PathScope: "/blog", PathScope: "/blog",
Extensions: map[string]struct{}{ Extensions: map[string]struct{}{
".md": struct{}{}, ".md": {},
}, },
Styles: []string{}, Styles: []string{},
Scripts: []string{}, Scripts: []string{},
...@@ -39,7 +39,7 @@ func TestMarkdown(t *testing.T) { ...@@ -39,7 +39,7 @@ func TestMarkdown(t *testing.T) {
Renderer: blackfriday.HtmlRenderer(0, "", ""), Renderer: blackfriday.HtmlRenderer(0, "", ""),
PathScope: "/docflags", PathScope: "/docflags",
Extensions: map[string]struct{}{ Extensions: map[string]struct{}{
".md": struct{}{}, ".md": {},
}, },
Styles: []string{}, Styles: []string{},
Scripts: []string{}, Scripts: []string{},
...@@ -49,7 +49,7 @@ func TestMarkdown(t *testing.T) { ...@@ -49,7 +49,7 @@ func TestMarkdown(t *testing.T) {
Renderer: blackfriday.HtmlRenderer(0, "", ""), Renderer: blackfriday.HtmlRenderer(0, "", ""),
PathScope: "/log", PathScope: "/log",
Extensions: map[string]struct{}{ Extensions: map[string]struct{}{
".md": struct{}{}, ".md": {},
}, },
Styles: []string{"/resources/css/log.css", "/resources/css/default.css"}, Styles: []string{"/resources/css/log.css", "/resources/css/default.css"},
Scripts: []string{"/resources/js/log.js", "/resources/js/default.js"}, Scripts: []string{"/resources/js/log.js", "/resources/js/default.js"},
...@@ -59,7 +59,7 @@ func TestMarkdown(t *testing.T) { ...@@ -59,7 +59,7 @@ func TestMarkdown(t *testing.T) {
Renderer: blackfriday.HtmlRenderer(0, "", ""), Renderer: blackfriday.HtmlRenderer(0, "", ""),
PathScope: "/og", PathScope: "/og",
Extensions: map[string]struct{}{ Extensions: map[string]struct{}{
".md": struct{}{}, ".md": {},
}, },
Styles: []string{}, Styles: []string{},
Scripts: []string{}, Scripts: []string{},
...@@ -175,9 +175,9 @@ DocFlags.var_bool true` ...@@ -175,9 +175,9 @@ DocFlags.var_bool true`
} }
rec = httptest.NewRecorder() rec = httptest.NewRecorder()
currenttime := time.Now().Local().Add(-time.Second) currenttime := time.Now().Local().Add(-time.Second)
err = os.Chtimes("testdata/og/first.md", currenttime, currenttime) _ = os.Chtimes("testdata/og/first.md", currenttime, currenttime)
currenttime = time.Now().Local() currenttime = time.Now().Local()
err = os.Chtimes("testdata/og_static/og/first.md/index.html", currenttime, currenttime) _ = os.Chtimes("testdata/og_static/og/first.md/index.html", currenttime, currenttime)
time.Sleep(time.Millisecond * 200) time.Sleep(time.Millisecond * 200)
md.ServeHTTP(rec, req) md.ServeHTTP(rec, req)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment