Skip to content

Commit 285ae7c

Browse files
committed
fix updater bug
1 parent 91aab31 commit 285ae7c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

typerocket/plugin/Updater.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ public function update($transient)
135135
if ($remote = $this->getApiJsonResponseBody()) {
136136

137137
$locate = $this->getData('locate');
138+
$version = $transient->checked[$locate] ?? null;
138139

139-
if (!$version = $transient->checked[$locate]) {
140+
if (!$version) {
140141
return $transient;
141142
}
142143

0 commit comments

Comments
 (0)