mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: change <E>WithError signature to <E>Err (#322)
<E>WithError is too verbose and we like short names
This commit is contained in:
@@ -37,9 +37,9 @@ type UserEdges struct {
|
||||
loadedTypes [1]bool
|
||||
}
|
||||
|
||||
// FriendsWithError returns the Friends value or an error if the edge
|
||||
// FriendsErr returns the Friends value or an error if the edge
|
||||
// was not loaded in eager-loading.
|
||||
func (e UserEdges) FriendsWithError() ([]*User, error) {
|
||||
func (e UserEdges) FriendsErr() ([]*User, error) {
|
||||
if e.loadedTypes[0] {
|
||||
return e.Friends, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user