Skip to content

Commit

Permalink
Save index to cache as it would be returned (#524)
Browse files Browse the repository at this point in the history
Fixes #523
  • Loading branch information
ia0 authored Dec 30, 2023
1 parent ae2d951 commit 268c8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/taplo-common/src/schema/associations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ impl<E: Environment> SchemaAssociations<E> {
}
};

index.transform_paths();

if self.cache.is_cache_path_set() {
if let Err(error) = self
.cache
Expand All @@ -352,8 +354,6 @@ impl<E: Environment> SchemaAssociations<E> {
}
}

index.transform_paths();

Ok(index)
}

Expand Down

0 comments on commit 268c8b1

Please sign in to comment.