Addressing some lint issues.

This commit is contained in:
Jakub Sobon 2020-11-14 00:44:45 -05:00
parent af3c5b9b00
commit b883d8b02f
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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)