Avoid caching nulls, refs #5234
parent
38c49b32cb
commit
4c50136522
|
@ -188,7 +188,7 @@ class GitHubDriver extends VcsDriver
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('{[a-f0-9]{40}}i', $identifier)) {
|
if ($composer && preg_match('{[a-f0-9]{40}}i', $identifier)) {
|
||||||
$this->cache->write($identifier, json_encode($composer));
|
$this->cache->write($identifier, json_encode($composer));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue