Refactor test assertions and improve code formatting

- Simplified test assertions in `fs_snapshot.rs` and `ref_properties.rs` for better readability by removing unnecessary line breaks.
- Enhanced the formatting of code in `rojo_ref.rs` to maintain consistency and improve clarity.

These changes improve the overall readability and maintainability of the test code and related implementations.
This commit is contained in:
Joe 2026-02-18 03:32:38 -06:00
parent a741f573a4
commit d6169c6d84
3 changed files with 11 additions and 13 deletions

View file

@ -329,9 +329,7 @@ impl RefPathIndex {
continue;
}
if let Ok(bytes) = std::fs::read(&path) {
if let Ok(val) =
crate::json::from_slice::<serde_json::Value>(&bytes)
{
if let Ok(val) = crate::json::from_slice::<serde_json::Value>(&bytes) {
if let Some(attrs) = val.get("attributes").and_then(|a| a.as_object()) {
for (key, value) in attrs {
if key.starts_with(crate::REF_PATH_ATTRIBUTE_PREFIX) {