mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Fix gofmt -s and ineffassign.
This commit is contained in:
parent
b541c717ca
commit
ecf91f525f
1 changed files with 6 additions and 6 deletions
|
@ -29,7 +29,7 @@ func TestMarkdown(t *testing.T) {
|
|||
Renderer: blackfriday.HtmlRenderer(0, "", ""),
|
||||
PathScope: "/blog",
|
||||
Extensions: map[string]struct{}{
|
||||
".md": struct{}{},
|
||||
".md": {},
|
||||
},
|
||||
Styles: []string{},
|
||||
Scripts: []string{},
|
||||
|
@ -39,7 +39,7 @@ func TestMarkdown(t *testing.T) {
|
|||
Renderer: blackfriday.HtmlRenderer(0, "", ""),
|
||||
PathScope: "/docflags",
|
||||
Extensions: map[string]struct{}{
|
||||
".md": struct{}{},
|
||||
".md": {},
|
||||
},
|
||||
Styles: []string{},
|
||||
Scripts: []string{},
|
||||
|
@ -49,7 +49,7 @@ func TestMarkdown(t *testing.T) {
|
|||
Renderer: blackfriday.HtmlRenderer(0, "", ""),
|
||||
PathScope: "/log",
|
||||
Extensions: map[string]struct{}{
|
||||
".md": struct{}{},
|
||||
".md": {},
|
||||
},
|
||||
Styles: []string{"/resources/css/log.css", "/resources/css/default.css"},
|
||||
Scripts: []string{"/resources/js/log.js", "/resources/js/default.js"},
|
||||
|
@ -59,7 +59,7 @@ func TestMarkdown(t *testing.T) {
|
|||
Renderer: blackfriday.HtmlRenderer(0, "", ""),
|
||||
PathScope: "/og",
|
||||
Extensions: map[string]struct{}{
|
||||
".md": struct{}{},
|
||||
".md": {},
|
||||
},
|
||||
Styles: []string{},
|
||||
Scripts: []string{},
|
||||
|
@ -175,9 +175,9 @@ DocFlags.var_bool true`
|
|||
}
|
||||
rec = httptest.NewRecorder()
|
||||
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()
|
||||
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)
|
||||
|
||||
md.ServeHTTP(rec, req)
|
||||
|
|
Loading…
Reference in a new issue