Skip to content

Commit 3e3328d

Browse files
committed
fix: use ParseInt
Signed-off-by: Babak K. Shandiz <babakks@github.com>
1 parent 9579872 commit 3e3328d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

device/device_flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func Wait(ctx context.Context, c httpClient, uri string, opts WaitOptions) (*api
207207
// We should try to use that if provided. It's okay if we couldn't find
208208
// it as we have already increased our interval as of the RFC spec.
209209
if s := resp.Get("interval"); s != "" {
210-
if v, err := strconv.ParseUint(s, 10, 64); err == nil && v > 0 {
210+
if v, err := strconv.ParseInt(s, 10, 64); err == nil && v > 0 {
211211
newInterval = time.Duration(v) * time.Second
212212
}
213213
}

0 commit comments

Comments
 (0)