Skip to content

Commit

Permalink
add missing empty object results to API commands
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 6, 2022
1 parent 0ac6f0d commit bdfdc1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/api/api.go
Expand Up @@ -274,6 +274,7 @@ func (h *Executor) Subscribe(_ context.Context, cmd *SubscribeRequest) *Subscrib
resp.Error = ErrorInternal
return resp
}
resp.Result = &SubscribeResult{}
return resp
}

Expand Down Expand Up @@ -305,6 +306,7 @@ func (h *Executor) Unsubscribe(_ context.Context, cmd *UnsubscribeRequest) *Unsu
resp.Error = ErrorInternal
return resp
}
resp.Result = &UnsubscribeResult{}
return resp
}

Expand Down Expand Up @@ -337,6 +339,7 @@ func (h *Executor) Disconnect(_ context.Context, cmd *DisconnectRequest) *Discon
resp.Error = ErrorInternal
return resp
}
resp.Result = &DisconnectResult{}
return resp
}

Expand All @@ -360,6 +363,7 @@ func (h *Executor) Refresh(_ context.Context, cmd *RefreshRequest) *RefreshRespo
resp.Error = ErrorInternal
return resp
}
resp.Result = &RefreshResult{}
return resp
}

Expand Down Expand Up @@ -570,7 +574,7 @@ func (h *Executor) HistoryRemove(_ context.Context, cmd *HistoryRemoveRequest) *
resp.Error = ErrorInternal
return resp
}

resp.Result = &HistoryRemoveResult{}
return resp
}

Expand Down

0 comments on commit bdfdc1e

Please sign in to comment.