Simplify the expression further.
@@ -434,9 +434,8 @@ func (api *API) GetIPListBulkOperation(ctx context.Context, id string) (IPListBu
// pollIPListBulkOperation implements synchronous behaviour for some asynchronous endpoints.
// bulk-operation status can be either pending, running, failed or completed
func (api *API) pollIPListBulkOperation(ctx context.Context, id string) error {
- var i uint8
- for i = 0; i < 16; i++ {
- sleepDuration := 0x1 << uint8(float64(i/2)) * time.Second
+ for i := uint8(0); i < 16; i++ {
+ sleepDuration := 1 << (i / 2) * time.Second
select {
case <-time.After(sleepDuration):
case <-ctx.Done():
