From 01e7c1707cf0bd27784320dd379c78671b33e186 Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Thu, 19 Oct 2023 21:19:10 +0200 Subject: [PATCH] Remove redundant throw statement. --- src/Filesystem.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Filesystem.php b/src/Filesystem.php index 9bac9809a..da4fef9ea 100644 --- a/src/Filesystem.php +++ b/src/Filesystem.php @@ -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));