Skip to content

Commit

Permalink
PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz committed Jul 3, 2023
1 parent 3b7a4ab commit fed4579
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/turbo-tasks-fs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,10 +1133,7 @@ impl FileSystemPathVc {
#[turbo_tasks::function]
pub async fn with_extension(self, extension: &str) -> Result<FileSystemPathVc> {
let this = self.await?;
let path_without_extension = match this.split_extension() {
(path_without_extension, Some(_)) => path_without_extension,
(path_without_extension, None) => path_without_extension,
};
let (path_without_extension, _) = this.split_extension();
Ok(Self::new_normalized(
this.fs,
// Like `Path::with_extension` and `PathBuf::set_extension`, if the extension is empty,
Expand Down

0 comments on commit fed4579

Please sign in to comment.