diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 17:39:11 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:08 -0700 |
commit | 1faafcd3809fe5b452a1a742137ca2cb7336aad6 (patch) | |
tree | 754fba6c648f2c4b4a87d53534f81d415fe1469b /lib/textui/log.go | |
parent | b6ec0ce387b0a3d9fb6f58ba43ca27943f99fb93 (diff) |
lint: Turn on dupword
Diffstat (limited to 'lib/textui/log.go')
-rw-r--r-- | lib/textui/log.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/textui/log.go b/lib/textui/log.go index bc8b159..0fe03e5 100644 --- a/lib/textui/log.go +++ b/lib/textui/log.go @@ -172,8 +172,8 @@ func (l *logger) log(lvl dlog.LogLevel, writeMsg func(io.Writer)) { // This is optimized for mostly-single-threaded usage. If I cared more // about multi-threaded performance, I'd trade in some // memory-use/allocations and (1) instead of using a static `logBuf`, - // I'd have a `logBufPool` `sync.Pool`, and (2) have the the final call - // to `l.out.Write()` be the only thing protected by `logMu`. + // I'd have a `logBufPool` `sync.Pool`, and (2) have the final call to + // `l.out.Write()` be the only thing protected by `logMu`. logMu.Lock() defer logMu.Unlock() defer logBuf.Reset() |