minor code cleanup

This commit is contained in:
Robin Appelman 2016-08-26 23:19:21 +02:00
commit 9c50244e67
2 changed files with 2 additions and 3 deletions

View file

@ -218,8 +218,7 @@ class Share extends AbstractShare {
public function rename($from, $to) {
$path1 = $this->escapePath($from);
$path2 = $this->escapePath($to);
$cmd = 'rename ' . $path1 . ' ' . $path2;
$output = $this->execute($cmd);
$output = $this->execute('rename ' . $path1 . ' ' . $path2);
return $this->parseOutput($output, $to);
}