Skip to content

Commit a252ed0

Browse files
committed
clippy err
1 parent 28e89a1 commit a252ed0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

kernel/src/transaction/mod.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,15 @@ impl Transaction {
166166
.map(|txn| txn.into_engine_data(get_log_txn_schema().clone(), engine));
167167

168168
// Validate that the table supports domain metadata operations if we're writing any
169-
if !self.domain_metadatas.is_empty() {
170-
if !self
169+
if !self.domain_metadatas.is_empty()
170+
&& !self
171171
.read_snapshot
172172
.table_configuration()
173173
.is_domain_metadata_supported()
174-
{
175-
return Err(Error::unsupported(
176-
"Domain metadata operations require writer version 7 and the 'domainMetadata' writer feature"
177-
));
178-
}
174+
{
175+
return Err(Error::unsupported(
176+
"Domain metadata operations require writer version 7 and the 'domainMetadata' writer feature"
177+
));
179178
}
180179

181180
// we cannot have multiple domain metadata actions for the same domain in a single transaction

0 commit comments

Comments
 (0)