Skip to content

Commit 9cd9f6c

Browse files
author
pedro
authored
Merge pull request #9 from TaleLin/dev
fix:移除data.query的无用判断
2 parents ff2789e + 281a919 commit 9cd9f6c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

app/validators/log.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ class LogFindValidator extends PaginateValidator {
1111
}
1212

1313
validateStart (data) {
14-
// 如果前端未传入query参数,则query为undifined,不能直接取start
15-
if (!data.query) {
16-
return true;
17-
}
1814
const start = data.query.start;
1915
// 如果 start 为可选
2016
if (isOptional(start)) {

0 commit comments

Comments
 (0)