We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 984870f commit dbaabb1Copy full SHA for dbaabb1
1 file changed
src/plugins/sql.rs
@@ -205,18 +205,17 @@ impl SqlPlugin {
205
| BinaryOperator::Lt
206
| BinaryOperator::LtEq
207
| BinaryOperator::Gt
208
- | BinaryOperator::GtEq => {
+ | BinaryOperator::GtEq
209
if lt_cat != rt_cat
210
&& lt_cat != TypeCategory::Unknown
211
- && rt_cat != TypeCategory::Unknown
212
- {
213
- issues.push(TypeIssue {
214
- message: format!(
215
- "Comparing incompatible types: {} ({:?}) vs {} ({:?})",
216
- lt, lt_cat, rt, rt_cat
217
- ),
218
- });
219
- }
+ && rt_cat != TypeCategory::Unknown =>
+ {
+ issues.push(TypeIssue {
+ message: format!(
+ "Comparing incompatible types: {} ({:?}) vs {} ({:?})",
+ lt, lt_cat, rt, rt_cat
+ ),
+ });
220
}
221
_ => {}
222
0 commit comments