Skip to content

Commit

Permalink
Cleanup unnecessary error returns
Browse files Browse the repository at this point in the history
  • Loading branch information
UnAfraid committed Jun 21, 2023
1 parent a7c5d62 commit bb989da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/mutation_resolver_create_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ func (r *mutationResolver) CreatePeer(ctx context.Context, input model.CreatePee
return &model.CreatePeerPayload{
ClientMutationID: input.ClientMutationID.Value(),
Peer: p,
}, err
}, nil
}
2 changes: 1 addition & 1 deletion api/mutation_resolver_delete_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ func (r *mutationResolver) DeletePeer(ctx context.Context, input model.DeletePee
return &model.DeletePeerPayload{
ClientMutationID: input.ClientMutationID.Value(),
Peer: p,
}, err
}, nil
}
2 changes: 1 addition & 1 deletion api/mutation_resolver_delete_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ func (r *mutationResolver) DeleteServer(ctx context.Context, input model.DeleteS
return &model.DeleteServerPayload{
ClientMutationID: input.ClientMutationID.Value(),
Server: s,
}, err
}, nil
}
2 changes: 1 addition & 1 deletion api/mutation_resolver_update_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ func (r *mutationResolver) UpdatePeer(ctx context.Context, input model.UpdatePee
return &model.UpdatePeerPayload{
ClientMutationID: input.ClientMutationID.Value(),
Peer: p,
}, err
}, nil
}

0 comments on commit bb989da

Please sign in to comment.