Skip to content
Snippets Groups Projects
Commit dc5bb7cd authored by Manish R Jain's avatar Manish R Jain
Browse files

merge if else to if

parent aa1c4e5a
No related branches found
No related tags found
No related merge requests found
...@@ -738,10 +738,7 @@ func (l *List) GetUids(offset, count int) []uint64 { ...@@ -738,10 +738,7 @@ func (l *List) GetUids(offset, count int) []uint64 {
offset = 0 offset = 0
} }
if count == 0 { if count == 0 || count > l.length()-offset {
count = l.length() - offset
} else if count > l.length()-offset {
count = l.length() - offset count = l.length() - offset
} }
if count < 0 { if count < 0 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment