Skip to content

Commit 1247f50

Browse files
committed
indentation
Signed-off-by: Brian L. Troutwine <[email protected]>
1 parent ce9149d commit 1247f50

File tree

1 file changed

+6
-12
lines changed
  • lading/src/generator/file_gen/logrotate_fs

1 file changed

+6
-12
lines changed

lading/src/generator/file_gen/logrotate_fs/model.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,10 +1268,8 @@ mod test {
12681268
if file.unlinked && file.read_only {
12691269
if file.open_handles > 0 {
12701270
// Should remain in state.nodes
1271-
assert!(
1272-
state.nodes.contains_key(&inode),
1273-
"Unlinked, read-only file with open handles should remain in state.nodes"
1274-
);
1271+
assert!(state.nodes.contains_key(&inode),
1272+
"Unlinked, read-only file with open handles should remain in state.nodes");
12751273

12761274
// There should be valid file handles pointing to this inode
12771275
let valid_handles: Vec<_> = state
@@ -1286,16 +1284,12 @@ mod test {
12861284
})
12871285
.collect();
12881286

1289-
assert!(
1290-
!valid_handles.is_empty(),
1291-
"Unlinked, read-only file with open handles should have valid file handles"
1292-
);
1287+
assert!(!valid_handles.is_empty(),
1288+
"Unlinked, read-only file with open handles should have valid file handles");
12931289
} else {
12941290
// Should be removed from state.nodes after GC
1295-
assert!(
1296-
!state.nodes.contains_key(&inode),
1297-
"Unlinked, read-only file with zero open handles should be removed from state.nodes"
1298-
);
1291+
assert!(!state.nodes.contains_key(&inode),
1292+
"Unlinked, read-only file with zero open handles should be removed from state.nodes");
12991293
}
13001294
}
13011295
}

0 commit comments

Comments
 (0)