mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix(github): Remove redundant check and fix coverage (#17990)
This commit is contained in:
parent
aaa8b71ddb
commit
a77a452fb7
1 changed files with 1 additions and 5 deletions
|
@ -17,11 +17,7 @@ function isOldCache(prCache: unknown): prCache is ApiPageCache<GhRestPr> {
|
||||||
) {
|
) {
|
||||||
const [item] = Object.values(prCache.items);
|
const [item] = Object.values(prCache.items);
|
||||||
// istanbul ignore if
|
// istanbul ignore if
|
||||||
if (
|
if (is.plainObject(item) && is.plainObject(item.head)) {
|
||||||
is.plainObject(item) &&
|
|
||||||
is.plainObject(item.head) &&
|
|
||||||
is.plainObject(item.base)
|
|
||||||
) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue