Skip to content

Commit

Permalink
Change concept of generating file name
Browse files Browse the repository at this point in the history
  • Loading branch information
hitarthpattani committed Mar 6, 2019
1 parent 5bcdb2b commit b7c5d0f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/code/Magento/ImportService/Model/Import/Type/SourceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ class SourceType implements SourceTypeInterface
*/
private $filesystem;

/**
* @var string
*/
private $fileName;

/**
* @var string
*/
Expand Down Expand Up @@ -70,14 +65,7 @@ public function __construct(
*/
private function generateFileName()
{
if(is_null($this->fileName))
{
$this->fileName = uniqid()
. '.'
. $this->sourceType;
}

return $this->fileName;
return uniqid() . '.' . $this->sourceType;
}

/**
Expand Down

0 comments on commit b7c5d0f

Please sign in to comment.