File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ func newItem(
154154}
155155
156156func (l * item ) Emit (t * table , buf io.Writer , indent int ) {
157- levelOfConcern , interesting := l .levelOfConcern (t )
157+ levelOfConcern , interesting := l .levelOfConcern (t . threshold )
158158 if ! interesting {
159159 return
160160 }
@@ -187,9 +187,9 @@ func (l *item) Footnote(nameStyle NameStyle) string {
187187// If this item's alert level is at least as high as the threshold,
188188// return the string that should be used as its "level of concern" and
189189// `true`; otherwise, return `"", false`.
190- func (l * item ) levelOfConcern (t * table ) (string , bool ) {
190+ func (l * item ) levelOfConcern (threshold Threshold ) (string , bool ) {
191191 alert := Threshold (float64 (l .value .ToUint64 ()) / l .scale )
192- if alert < t . threshold {
192+ if alert < threshold {
193193 return "" , false
194194 }
195195 if alert > 30 {
You can’t perform that action at this time.
0 commit comments