lint: remove conditions that are always true (SA4003)

Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Moritz Poldrack 2022-07-29 21:07:58 +02:00 committed by Robin Jarry
parent f70eecc7cb
commit 91981574cc
1 changed files with 1 additions and 1 deletions

View File

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