entc/gen: change <E>Err signature to <E>OrErr (#325)

Signed-off-by: Alex Snast <alexsn@fb.com>
This commit is contained in:
Alex Snast
2020-01-30 17:56:36 +01:00
committed by GitHub
parent 0802e0b4f5
commit e6ba06441b
49 changed files with 203 additions and 203 deletions

View File

@@ -37,9 +37,9 @@ type UserEdges struct {
loadedTypes [1]bool
}
// FriendsErr returns the Friends value or an error if the edge
// FriendsOrErr returns the Friends value or an error if the edge
// was not loaded in eager-loading.
func (e UserEdges) FriendsErr() ([]*User, error) {
func (e UserEdges) FriendsOrErr() ([]*User, error) {
if e.loadedTypes[0] {
return e.Friends, nil
}