Skip to content

Commit

Permalink
Added option to force branch update
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek authored Nov 1, 2017
1 parent d57c79c commit 96118f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Branch.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function __construct($apiKey, IBranchStorage $branchStorage)
/**
* @throws \Exception
*/
public function initializeStorage()
public function initializeStorage($force = false)
{
if (!$this->branchStorage->isStorageValid())
if (!$this->branchStorage->isStorageValid() || $force)
{
$result = file_get_contents($this->jsonEndpoint);
if (!$result)
Expand Down

0 comments on commit 96118f9

Please sign in to comment.