diff --git a/src/Branch.php b/src/Branch.php index e2b6c20..2f5d309 100644 --- a/src/Branch.php +++ b/src/Branch.php @@ -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)