Skip to content

Commit

Permalink
code return, custom errors issue, typos only
Browse files Browse the repository at this point in the history
  • Loading branch information
sharma-shray authored Oct 9, 2024
1 parent f3629b0 commit 5e6c6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diesel_migrations/src/file_based_migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl SqlFileMigration {
fn from_path(path: &Path) -> Result<Self, MigrationError> {
if migrations_internals::valid_sql_migration_directory(path) {
let metadata = TomlMetadataWrapper(
TomlMetadata::read_from_file(&path.join("metadata.toml"))?
TomlMetadata::read_from_file(&path.join("metadata.toml")).unwrap_or_default(),
);
Ok(Self {
base_path: path.to_path_buf(),
Expand Down

0 comments on commit 5e6c6ea

Please sign in to comment.