From 5d0c0a03d70d9b6fe32387e364e57d26f9161231 Mon Sep 17 00:00:00 2001 From: BaoyangChai Date: Fri, 28 Jun 2019 22:56:32 +0800 Subject: [PATCH] update --- orm/db_alias.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/orm/db_alias.go b/orm/db_alias.go index a581d82d..9cb42748 100644 --- a/orm/db_alias.go +++ b/orm/db_alias.go @@ -172,7 +172,6 @@ func (d *DB) QueryRow(query string, args ...interface{}) *sql.Row { stmt, err := d.getStmt(query) if err != nil { panic(err) - return nil } return stmt.QueryRow(args...) @@ -183,7 +182,6 @@ func (d *DB) QueryRowContext(ctx context.Context, query string, args ...interfac stmt, err := d.getStmt(query) if err != nil { panic(err) - return nil } return stmt.QueryRowContext(ctx, args) }