Skip to content

Commit 0c789eb

Browse files
author
Devdutt Shenoi
committed
don't construct path
1 parent 2b3b2d4 commit 0c789eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/object_storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
712712
}
713713

714714
async fn upload_files_from_staging(&self) -> Result<(), ObjectStorageError> {
715-
if !Path::new(&PARSEABLE.options.staging_dir()).exists() {
715+
if !PARSEABLE.options.staging_dir().exists() {
716716
return Ok(());
717717
}
718718

0 commit comments

Comments
 (0)