Skip to content

Commit

Permalink
fix : add return error handling in GetFullURLByKey
Browse files Browse the repository at this point in the history
  • Loading branch information
PickHD committed May 9, 2023
1 parent 33393eb commit 30f7574
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shortener/internal/v1/service/short.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ func (ss *ShortServiceImpl) ClickShort(shortURL string) (*model.ClickShortRespon

return &model.ClickShortResponse{FullURL: data.FullURL}, nil
}

return nil, err
}

ss.Logger.Info("get data from caching....")
Expand Down

0 comments on commit 30f7574

Please sign in to comment.