Transaction方法返回nil的陷阱 #1724

Closed
opened 2020-06-26 07:48:38 +00:00 by linbaozhong · 0 comments
Contributor

Transaction方法中

	result, err := f(session)
	if err != nil {
		return nil, err
	}

建议result原样返回

Transaction方法中 ``` result, err := f(session) if err != nil { return nil, err } ``` 建议result原样返回
lunny closed this issue 2020-06-26 13:06:50 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#1724
No description provided.