Skip to content

Commit

Permalink
Remove redundant throw statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Oct 19, 2023
1 parent c085126 commit 01e7c17
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public function move(string $source, string $destination, array $config = []): v

if ($from === $to) {
throw UnableToMoveFile::sourceAndDestinationAreTheSame($source, $destination);
throw UnableToMoveFile::because('Source and destination are the same', $source, $destination);
}

$this->adapter->move($from, $to, $this->config->extend($config));
Expand Down

0 comments on commit 01e7c17

Please sign in to comment.