summaryrefslogtreecommitdiff
path: root/lib/textui
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-03-17 02:28:54 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2023-03-17 02:52:07 -0400
commit1ea26f04701fa66e36b058f3efb3a6c7059cdc5c (patch)
tree9ba66e893d6f66096f6b06284d09c8eb3e50facc /lib/textui
parent0cfc5d80855ee0a28329305cda13e7bff935a297 (diff)
tree-wide: Turn on all revive linters (with exceptions)
Diffstat (limited to 'lib/textui')
-rw-r--r--lib/textui/log.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/textui/log.go b/lib/textui/log.go
index 6cf9abe..9aff364 100644
--- a/lib/textui/log.go
+++ b/lib/textui/log.go
@@ -35,7 +35,7 @@ type LogLevelFlag struct {
var _ pflag.Value = (*LogLevelFlag)(nil)
// Type implements pflag.Value.
-func (lvl *LogLevelFlag) Type() string { return "loglevel" }
+func (*LogLevelFlag) Type() string { return "loglevel" }
// Set implements pflag.Value.
func (lvl *LogLevelFlag) Set(str string) error {
@@ -94,7 +94,7 @@ func NewLogger(out io.Writer, lvl dlog.LogLevel) dlog.Logger {
}
// Helper implements dlog.Logger.
-func (l *logger) Helper() {}
+func (*logger) Helper() {}
// WithField implements dlog.Logger.
func (l *logger) WithField(key string, value any) dlog.Logger {
@@ -127,7 +127,7 @@ func (l *logger) StdLogger(lvl dlog.LogLevel) *log.Logger {
}
// Log implements dlog.Logger.
-func (l *logger) Log(lvl dlog.LogLevel, msg string) {
+func (*logger) Log(dlog.LogLevel, string) {
panic("should not happen: optimized log methods should be used instead")
}