mirror of https://github.com/mum4k/termdash.git
Addressing some lint issues.
This commit is contained in:
parent
af3c5b9b00
commit
b883d8b02f
|
@ -135,8 +135,6 @@ func convMouse(event *tcell.EventMouse) terminalapi.Event {
|
|||
}
|
||||
}
|
||||
|
||||
// Get only button events, not wheel events
|
||||
tcellBtn &= tcell.ButtonMask(0xff)
|
||||
switch tcellBtn = event.Buttons(); tcellBtn {
|
||||
case tcell.ButtonNone:
|
||||
button = mouse.ButtonRelease
|
||||
|
|
|
@ -128,7 +128,7 @@ func ValueFormatterSuffix(decimals int, suffix string) ValueFormatter {
|
|||
}
|
||||
|
||||
// valueFormatterSuffixWithTransformer is a factory that returns a formatter
|
||||
// that will apply a tranform function to the received value before
|
||||
// that will apply a transform function to the received value before
|
||||
// returning the decimal with suffix representation.
|
||||
func valueFormatterSuffixWithTransformer(decimals int, suffix string, transformFunc func(float64) float64) ValueFormatter {
|
||||
dFmt := suffixDecimalFormat(decimals, suffix)
|
||||
|
|
Loading…
Reference in New Issue