[#1059] pilorama: Pass linter check

funlen 'TreeSortedByFilename' is too long (81 > 80)

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2024-04-02 08:45:31 +03:00
parent b595ba2992
commit ed2377307d

View file

@ -1074,8 +1074,7 @@ func (t *boltForest) TreeSortedByFilename(ctx context.Context, cid cidSDK.ID, tr
})
for i := range result {
if cmp := bytes.Compare([]byte(last), result[i].Meta.GetAttr(AttributeFilename)); cmp <= 0 {
// if last == result[i], return next [i+1:] values
// if last < result[i], return all values from [i:]
// if last == result[i], return next [i+1:] values; if last < result[i], return all values from [i:]
result = result[i+cmp+1:]
break
}