mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-27 13:48:49 +08:00
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 {
|
switch tcellBtn = event.Buttons(); tcellBtn {
|
||||||
case tcell.ButtonNone:
|
case tcell.ButtonNone:
|
||||||
button = mouse.ButtonRelease
|
button = mouse.ButtonRelease
|
||||||
|
@ -128,7 +128,7 @@ func ValueFormatterSuffix(decimals int, suffix string) ValueFormatter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// valueFormatterSuffixWithTransformer is a factory that returns a formatter
|
// 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.
|
// returning the decimal with suffix representation.
|
||||||
func valueFormatterSuffixWithTransformer(decimals int, suffix string, transformFunc func(float64) float64) ValueFormatter {
|
func valueFormatterSuffixWithTransformer(decimals int, suffix string, transformFunc func(float64) float64) ValueFormatter {
|
||||||
dFmt := suffixDecimalFormat(decimals, suffix)
|
dFmt := suffixDecimalFormat(decimals, suffix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user