Skip to content

Commit

Permalink
opt: no change no set. larapack#41
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkcup committed Jan 19, 2019
1 parent ddca1aa commit fc89b89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ public function addRepository($name, $info)
$this->items['repositories'] = [];
}

$this->items->set('repositories.'.$name, $info);
if ($this->items->get('repositories.'.$name) != $info) {
$this->items->set('repositories.'.$name, $info);

$this->changed = true;
$this->changed = true;
}

return $this;
}
Expand Down

0 comments on commit fc89b89

Please sign in to comment.