Skip to content

Commit 1971f6c

Browse files
this is the way
1 parent e116332 commit 1971f6c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/pgt_completions/src/relevance/filtering.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,10 @@ impl CompletionFilter<'_> {
144144
.get(schema_or_alias)
145145
.is_some_and(|t| t == &col.table_name),
146146

147-
CompletionRelevanceData::Schema(_) => {
148-
// we should never allow schema suggestions if there already was one.
149-
false
150-
}
151-
147+
// we should never allow schema suggestions if there already was one.
148+
CompletionRelevanceData::Schema(_) => false,
152149
// no aliases and schemas for policies
153-
CompletionRelevanceData::Policy(p) => &p.schema_name == schema_or_alias,
150+
CompletionRelevanceData::Policy(_) => false,
154151
};
155152

156153
if !matches {

0 commit comments

Comments
 (0)