aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-07-29 21:07:58 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-04 21:57:38 +0200
commit91981574cc37ea4326c1ca7058358914867ebd9f (patch)
treea1a6b071ff344b1e686d28e4676214970e9d5936 /widgets
parentf70eecc7cbe0a5d0641503259813e67beadebf8d (diff)
downloadaerc-91981574cc37ea4326c1ca7058358914867ebd9f.tar.gz
lint: remove conditions that are always true (SA4003)
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/dirtree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dirtree.go b/widgets/dirtree.go
index 1b7e2e1f..e5404343 100644
--- a/widgets/dirtree.go
+++ b/widgets/dirtree.go
@@ -254,7 +254,7 @@ func (dt *DirectoryTree) displayText(node *types.Thread) string {
}
func (dt *DirectoryTree) getDirectory(node *types.Thread) string {
- if uid := node.Uid; uid >= 0 && int(uid) < len(dt.treeDirs) {
+ if uid := node.Uid; int(uid) < len(dt.treeDirs) {
return dt.treeDirs[uid]
}
return ""