mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Clean code
This commit is contained in:
@@ -63,10 +63,3 @@ func putStat(tx *sql.Tx, key, value string) (err error) {
|
||||
err = execStmtTx(tx, stmt)
|
||||
return
|
||||
}
|
||||
|
||||
func getStat(key string) (ret string) {
|
||||
stmt := "SELECT value FROM stat WHERE `key` = '" + key + "'"
|
||||
row := queryRow(stmt)
|
||||
row.Scan(&ret)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user