Skip to content

Commit 3873318

Browse files
committed
save
1 parent a5bea50 commit 3873318

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/pg_cli/src/commands/check.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ impl CommandRunner for CheckCommandPayload {
3939
fs: &DynRef<'_, dyn FileSystem>,
4040
configuration: &PartialConfiguration,
4141
) -> Result<Vec<OsString>, CliDiagnostic> {
42+
// update this to find migration files
4243
let paths = get_files_to_process_with_cli_options(
4344
self.since.as_deref(),
4445
self.changed,

crates/pg_cli/src/execute/traverse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ impl TraversalContext for TraversalOptions<'_, '_> {
481481
}
482482

483483
// only allow .sql and .pg files for now
484-
if path.extension().is_some_and(|ext| ext != "sql" && ext != "pg") {
484+
if path.extension().is_none_or(|ext| ext != "sql" && ext != "pg") {
485485
return false;
486486
}
487487

0 commit comments

Comments
 (0)