mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05:00
Lint
This commit is contained in:
@@ -102,7 +102,14 @@ class SourceQuery {
|
||||
opAnd.eq(id, SourceTable.id)
|
||||
opAnd.eq(name, SourceTable.name)
|
||||
opAnd.eq(lang, SourceTable.lang)
|
||||
opAnd.andWhere(isNsfw) { if (it) SourceTable.contentRating eq ContentRating.PORNOGRAPHIC.ordinal else SourceTable.contentRating neq ContentRating.PORNOGRAPHIC.ordinal }
|
||||
opAnd.andWhere(isNsfw) {
|
||||
if (it) {
|
||||
SourceTable.contentRating eq ContentRating.PORNOGRAPHIC.ordinal
|
||||
} else {
|
||||
SourceTable.contentRating neq
|
||||
ContentRating.PORNOGRAPHIC.ordinal
|
||||
}
|
||||
}
|
||||
opAnd.andWhere(contentRating) { SourceTable.contentRating eq it.getValue() }
|
||||
|
||||
return opAnd.op
|
||||
|
||||
Reference in New Issue
Block a user