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:
parent
f70eecc7cb
commit
91981574cc
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Reference in a new issue