1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

Merge pull request #256 from mum4k/lint

Addressing some lint issues.
This commit is contained in:
Jakub Sobon 2020-11-14 00:59:28 -05:00 committed by GitHub
commit b698e3f93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- addressing some lint issues.
- coveralls again triggers and reports on PRs.
- improving test coverage in some modules.

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)