return
}
const tail = this.tail
- this.tail = (this.tail as Node<T>).prev
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ this.tail = this.tail!.prev
if (this.tail == null) {
delete this.head
} else {
value: node.data,
done: false
}
- node = node.next as Node<T>
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ node = node.next!
return ret
}
}
value: node.data,
done: false
}
- node = node.prev as Node<T>
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ node = node.prev!
return ret
}
}