Skip to content

Commit 3d8f1b5

Browse files
that too
1 parent 5e174c7 commit 3d8f1b5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

crates/pg_workspace/src/workspace.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ pub struct PullDiagnosticsResult {
5353
pub diagnostics: Vec<pg_diagnostics::serde::Diagnostic>,
5454
pub errors: usize,
5555
pub skipped_diagnostics: u64,
56-
pub skipped_db_checks: bool,
5756
}
5857

5958
#[derive(Debug, Clone, Copy, serde::Serialize, serde::Deserialize, PartialEq)]

crates/pg_workspace/src/workspace/server.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,12 @@ impl Workspace for WorkspaceServer {
300300

301301
let mut diagnostics: Vec<SDiagnostic> = vec![];
302302

303-
let maybe_pool = self
303+
if let Some(pool) = self
304304
.connection
305305
.read()
306306
.expect("DbConnection RwLock panicked")
307-
.get_pool();
308-
309-
let skipped_db_checks = maybe_pool.is_none();
310-
if let Some(pool) = maybe_pool {
307+
.get_pool()
308+
{
311309
let typecheck_params: Vec<_> = doc
312310
.iter_statements_with_text_and_range()
313311
.map(|(stmt, range, text)| {
@@ -404,7 +402,6 @@ impl Workspace for WorkspaceServer {
404402
diagnostics,
405403
errors,
406404
skipped_diagnostics: 0,
407-
skipped_db_checks,
408405
})
409406
}
410407

0 commit comments

Comments
 (0)