fix(github): Remove redundant check and fix coverage (#17990)

This commit is contained in:
Sergei Zharinov 2022-09-26 22:22:57 +03:00 committed by GitHub
parent aaa8b71ddb
commit a77a452fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,11 +17,7 @@ function isOldCache(prCache: unknown): prCache is ApiPageCache<GhRestPr> {
) {
const [item] = Object.values(prCache.items);
// istanbul ignore if
if (
is.plainObject(item) &&
is.plainObject(item.head) &&
is.plainObject(item.base)
) {
if (is.plainObject(item) && is.plainObject(item.head)) {
return true;
}
}