Skip to content

Commit 256da1e

Browse files
review changes
1 parent b57892b commit 256da1e

File tree

1 file changed

+2
-4
lines changed
  • framework/db/src/main/java/com/cloud/utils/db

1 file changed

+2
-4
lines changed

framework/db/src/main/java/com/cloud/utils/db/Filter.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public Filter(Class<?> clazz, String field, boolean ascending) {
5757
}
5858

5959
public Filter(long limit) {
60-
this(limit, true);
60+
this(limit, false);
6161
}
6262

6363
/**
@@ -68,10 +68,8 @@ public Filter(long limit) {
6868
public Filter(long limit, boolean randomize) {
6969
if (randomize) {
7070
_orderBy = " ORDER BY RAND()" ;
71-
_limit = limit;
72-
} else {
73-
_limit = limit;
7471
}
72+
_limit = limit;
7573
}
7674

7775
public Filter(Long offset, Long limit) {

0 commit comments

Comments
 (0)