summaryrefslogtreecommitdiff
path: root/lib/textui
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 17:49:11 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 22:42:08 -0700
commit493ec396fab32d9e8859e34ad497fdb0a910a33c (patch)
treee174a7676cbe222b343004336b53e37cd37101a7 /lib/textui
parent95c8965e8b897aa69a3fbdea42c79513f55457ad (diff)
lint: Turn on forcetypeassert
Diffstat (limited to 'lib/textui')
-rw-r--r--lib/textui/progress.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/textui/progress.go b/lib/textui/progress.go
index 56fda96..68d986f 100644
--- a/lib/textui/progress.go
+++ b/lib/textui/progress.go
@@ -56,6 +56,7 @@ func (p *Progress[T]) Done() {
}
func (p *Progress[T]) flush(force bool) {
+ //nolint:forcetypeassert // It wasn't worth it to me (yet?) to make a typed wrapper around atomic.Value.
cur := p.cur.Load().(T)
if !force && cur == p.oldStat {
return