diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 17:49:11 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:08 -0700 |
commit | 493ec396fab32d9e8859e34ad497fdb0a910a33c (patch) | |
tree | e174a7676cbe222b343004336b53e37cd37101a7 /lib/textui | |
parent | 95c8965e8b897aa69a3fbdea42c79513f55457ad (diff) |
lint: Turn on forcetypeassert
Diffstat (limited to 'lib/textui')
-rw-r--r-- | lib/textui/progress.go | 1 |
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 |