Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Jan 19, 2025
1 parent e839a48 commit 20cb2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handler/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (h *VersionHandler) Create(c *fiber.Ctx) error {
return c.Status(fiber.StatusCreated).JSON(resp)
}

func (h *VersionHandler) ValidateCDK(cdk, spId, ua, source string) (bool, error) {
func (h *VersionHandler) validateCDK(cdk, spId, ua, source string) (bool, error) {
h.logger.Debug("Validating CDK")
if cdk == "" {
h.logger.Error("Missing cdk param")
Expand Down Expand Up @@ -369,7 +369,7 @@ func (h *VersionHandler) GetLatest(c *fiber.Ctx) error {
return c.Status(fiber.StatusOK).JSON(resp)
}

if isFirstBind, err := h.ValidateCDK(req.CDK, req.SpID, req.UserAgent, resID); err != nil {
if isFirstBind, err := h.validateCDK(req.CDK, req.SpID, req.UserAgent, resID); err != nil {
var e RemoteError
switch {
case errors.Is(err, CdkNotfound) || errors.Is(err, SpIdNotfound):
Expand Down

0 comments on commit 20cb2d1

Please sign in to comment.