diff --git a/backend/app/migrator/wordpress.go b/backend/app/migrator/wordpress.go index c1199ea746..114afaf1fa 100644 --- a/backend/app/migrator/wordpress.go +++ b/backend/app/migrator/wordpress.go @@ -143,7 +143,7 @@ func (w *WordPress) convert(r io.Reader, siteID string) chan store.Comment { commentsCh <- commentFormatter.Format(c) stats.inpComments++ if stats.inpComments%1000 == 0 { - log.Printf("[DEBUG] proccessed %d comments", stats.inpComments) + log.Printf("[DEBUG] processed %d comments", stats.inpComments) } } } diff --git a/backend/app/migrator/wordpress_test.go b/backend/app/migrator/wordpress_test.go index 09769b5618..740778b4a6 100644 --- a/backend/app/migrator/wordpress_test.go +++ b/backend/app/migrator/wordpress_test.go @@ -17,7 +17,7 @@ import ( func TestWordPress_Import(t *testing.T) { siteID := "testWP" - defer os.Remove("/tmp/remark-test.db") + defer func() { _ = os.Remove("/tmp/remark-test.db") }() b, err := engine.NewBoltDB(bolt.Options{}, engine.BoltSite{FileName: "/tmp/remark-test.db", SiteID: siteID}) assert.Nil(t, err, "create store")