Skip to content

Commit

Permalink
refactor: newDigestShort
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Apr 17, 2021
1 parent ac2ba7d commit d3a477a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion lib/manager/types.ts
Expand Up @@ -144,7 +144,6 @@ export interface LookupUpdate {
isRange?: boolean;
isRollback?: boolean;
newDigest?: string;
newDigestShort?: string;
newMajor?: number;
newMinor?: number;
newValue: string;
Expand Down
Expand Up @@ -147,7 +147,6 @@ Object {
"blockedByPin": true,
"bucket": "non-major",
"newDigest": "sha256:abcdef1234567890",
"newDigestShort": "abcdef1",
"newMajor": 8,
"newMinor": 1,
"newValue": "8.1.0",
Expand All @@ -156,7 +155,6 @@ Object {
},
Object {
"newDigest": "sha256:0123456789abcdef",
"newDigestShort": "0123456",
"newValue": "8.0.0",
"updateType": "pin",
},
Expand All @@ -170,7 +168,6 @@ Object {
"updates": Array [
Object {
"newDigest": "sha256:abcdef1234567890",
"newDigestShort": "abcdef1",
"newValue": "alpine",
"updateType": "pin",
},
Expand All @@ -190,7 +187,6 @@ Object {
"updates": Array [
Object {
"newDigest": "sha256:abcdef1234567890",
"newDigestShort": "abcdef1",
"newValue": "8.1.0",
"updateType": "pin",
},
Expand All @@ -212,7 +208,6 @@ Object {
Object {
"bucket": "non-major",
"newDigest": "sha256:abcdef1234567890",
"newDigestShort": "abcdef1",
"newMajor": 8,
"newMinor": 1,
"newValue": "8.1.0",
Expand All @@ -221,7 +216,6 @@ Object {
},
Object {
"newDigest": "sha256:0123456789abcdef",
"newDigestShort": "0123456",
"newValue": "8.0.0",
"updateType": "digest",
},
Expand All @@ -235,7 +229,6 @@ Object {
"updates": Array [
Object {
"newDigest": "sha256:abcdef1234567890",
"newDigestShort": "abcdef1",
"newValue": "alpine",
"updateType": "digest",
},
Expand All @@ -250,7 +243,6 @@ Object {
"updates": Array [
Object {
"newDigest": "4b825dc642cb6eb9a060e54bf8d69288fbee4904",
"newDigestShort": "4b825dc",
"newValue": undefined,
"newVersion": undefined,
"updateType": "digest",
Expand Down
7 changes: 0 additions & 7 deletions lib/workers/repository/process/lookup/index.ts
Expand Up @@ -328,13 +328,6 @@ export async function lookupUpdates(
if (pinDigests || currentDigest) {
update.newDigest =
update.newDigest || (await getDigest(config, update.newValue));
if (update.newDigest) {
update.newDigestShort = update.newDigest
.replace('sha256:', '')
.substring(0, 7);
} else {
logger.debug({ newValue: update.newValue }, 'Could not getDigest');
}
}
}
}
Expand Down

0 comments on commit d3a477a

Please sign in to comment.