mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
♻️ Refactor Go to err != nil, err == nil (#12385)
This commit is contained in:
@@ -45,7 +45,7 @@ func SQL(c *gin.Context) {
|
||||
|
||||
stmt := arg["stmt"].(string)
|
||||
result, err := sql.Query(stmt, model.Conf.Search.Limit)
|
||||
if nil != err {
|
||||
if err != nil {
|
||||
ret.Code = 1
|
||||
ret.Msg = err.Error()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user