Skip to content

Commit

Permalink
fix hepa EOF due to client not found
Browse files Browse the repository at this point in the history
  • Loading branch information
chengjoey committed Dec 28, 2023
1 parent a229709 commit 9a59228
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ func (impl GatewayOrgClientServiceImpl) GetCredentials(id string) (res dto.Clien
if err != nil {
return
}
if dao == nil {
err = errors.New("client not found")
return
}
res = dto.ClientInfoDto{
ClientId: dao.Id,
ClientSecret: dao.ClientSecret,
Expand Down

0 comments on commit 9a59228

Please sign in to comment.