Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Nov 7, 2023
1 parent 1245db3 commit cd85584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package linodego
import (
"context"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"fmt"
"reflect"
Expand Down Expand Up @@ -53,7 +54,7 @@ func (l ListOptions) Hash() (string, error) {

h.Write(data)

return fmt.Sprintf("%x", h.Sum(nil)), nil
return hex.EncodeToString(h.Sum(nil)), nil
}

func applyListOptionsToRequest(opts *ListOptions, req *resty.Request) error {
Expand Down

0 comments on commit cd85584

Please sign in to comment.