Skip to content

Commit

Permalink
[chore] remove comment, unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Sep 17, 2024
1 parent f127379 commit 1933c42
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions vngcloud/services/network/v2/secgroup_rule.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package v2

import (
"fmt"
lsclient "github.com/vngcloud/vngcloud-go-sdk/v2/vngcloud/client"
lsentity "github.com/vngcloud/vngcloud-go-sdk/v2/vngcloud/entity"
lserr "github.com/vngcloud/vngcloud-go-sdk/v2/vngcloud/sdk_error"
Expand All @@ -18,7 +17,6 @@ func (s *NetworkServiceV2) CreateSecgroupRule(popts ICreateSecgroupRuleRequest)
WithJsonError(errResp)

if _, sdkErr := s.VserverClient.Post(url, req); sdkErr != nil {
fmt.Println("sdkErr: ", sdkErr)
return nil, lserr.SdkErrorHandler(sdkErr, errResp,
lserr.WithErrorSecgroupNotFound(errResp),
lserr.WithErrorSecgroupRuleExceedQuota(errResp),
Expand Down
3 changes: 0 additions & 3 deletions vngcloud/services/volume/v2/blockvolume.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package v2

import (
"fmt"
lsclient "github.com/vngcloud/vngcloud-go-sdk/v2/vngcloud/client"
lsentity "github.com/vngcloud/vngcloud-go-sdk/v2/vngcloud/entity"
lserr "github.com/vngcloud/vngcloud-go-sdk/v2/vngcloud/sdk_error"
Expand Down Expand Up @@ -142,8 +141,6 @@ func (s *VolumeServiceV2) MigrateBlockVolumeById(popts IMigrateBlockVolumeByIdRe
WithJsonError(errResp).
WithJsonResponse(&resp)

fmt.Println("The resp is: ", resp)

if _, sdkErr := s.VServerClient.Put(url, req); sdkErr != nil {
sdkErr = lserr.SdkErrorHandler(sdkErr, errResp,
lserr.WithErrorVolumeMigrateInSameZone(errResp),
Expand Down

0 comments on commit 1933c42

Please sign in to comment.