Skip to content

Commit

Permalink
Minor lint change
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Sep 1, 2023
1 parent 5cbd771 commit 2836ba4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions python/src/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,15 +642,13 @@ fn parse_write_mode(mode: &str) -> PyResult<WriteMode> {
pub(crate) fn get_object_store_params(options: &PyDict) -> Option<ObjectStoreParams> {
if options.is_none() {
None
} else if let Some(commit_handler) = options.get_item("commit_handler") {
let py_commit_lock = PyCommitLock::new(commit_handler.to_object(options.py()));
let mut object_store_params = ObjectStoreParams::default();
object_store_params.set_commit_lock(Arc::new(py_commit_lock));
Some(object_store_params)
} else {
if let Some(commit_handler) = options.get_item("commit_handler") {
let py_commit_lock = PyCommitLock::new(commit_handler.to_object(options.py()));
let mut object_store_params = ObjectStoreParams::default();
object_store_params.set_commit_lock(Arc::new(py_commit_lock));
Some(object_store_params)
} else {
None
}
None
}
}

Expand Down

0 comments on commit 2836ba4

Please sign in to comment.