style: 合入后修 gofmt/govet 与 RegistrationView 类型检查
This commit is contained in:
@@ -53,11 +53,11 @@ func TestLoginDeletesExpiredAdminSessions(t *testing.T) {
|
||||
})
|
||||
srv := httptest.NewServer(h)
|
||||
t.Cleanup(srv.Close)
|
||||
if err := db.Queue.Do(context.Background(), func(tx *sql.Tx) error {
|
||||
if qerr := db.Queue.Do(context.Background(), func(tx *sql.Tx) error {
|
||||
_, e := tx.Exec(`INSERT INTO admin_sessions(token_hash, created_at, expires_at) VALUES ('expired-hash', 1, 1)`)
|
||||
return e
|
||||
}); err != nil {
|
||||
t.Fatal(err)
|
||||
}); qerr != nil {
|
||||
t.Fatal(qerr)
|
||||
}
|
||||
jar, err := cookiejar.New(nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user