From 70cf9514bbbce2f96ed994c44efecc2651c613ab Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sun, 14 May 2023 18:55:11 -0700 Subject: [PATCH] Revert "Bug fix" This reverts commit 7bb1d9d190dca45b08b2e429b5f1fb8e635184ba. --- fuzz/fuzz_targets/fuzz_write.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fuzz/fuzz_targets/fuzz_write.rs b/fuzz/fuzz_targets/fuzz_write.rs index d0c3aa65..ce9f213c 100644 --- a/fuzz/fuzz_targets/fuzz_write.rs +++ b/fuzz/fuzz_targets/fuzz_write.rs @@ -33,9 +33,10 @@ pub struct FileOperation { impl FileOperation { fn referenceable_name(&self) -> String { - if let BasicFileOperation::WriteDirectory(_) = self.basic - && !self.name.ends_with('\\') && !self.name.ends_with('/') { - return self.name.to_owned() + "/"; + if let BasicFileOperation::WriteDirectory(_) = self.basic { + if !self.name.ends_with('\\') && !self.name.ends_with('/') { + return self.name.to_owned() + "/"; + } } else { self.name.to_owned() }