Skip to content

Commit

Permalink
Update return values
Browse files Browse the repository at this point in the history
  • Loading branch information
sbstjn committed Jun 29, 2018
1 parent 03bac1c commit 44bf5d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.go
Expand Up @@ -9,15 +9,15 @@ type personEvent struct {
ID int `json:"id"`
}

func handlePeople() (interface{}, error) {
func handlePeople() (people, error) {
return dataPeople, nil
}

func handlePerson(p personEvent) (interface{}, error) {
func handlePerson(p personEvent) (*person, error) {
return dataPeople.byID(p.ID)
}

func handleFriends(p person) (interface{}, error) {
func handleFriends(p person) (people, error) {
return p.getFriends()
}

Expand Down

0 comments on commit 44bf5d2

Please sign in to comment.