Skip to content

Commit

Permalink
fix unused console log
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Aug 10, 2024
1 parent 9f4364d commit ee355f5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,6 @@ export async function handlePublish(

assert.strictEqual(key, `zls-${os}-${arch}-${version}.${extension}`);

// console.log(
// `os=${os}, arch=${arch}, version=${version}, extension=${extension}, shasum=${file_hash.digest("hex")}, size=${value.size.toString()}`,
// );

if (SemanticVersion.parse(version) === null) {
return new Response(
`artifact '${key}' has an invalid version '${version}'!`,
Expand All @@ -294,6 +290,7 @@ export async function handlePublish(

const fileHash = createHash("sha256");
await pipeline(file.stream(), fileHash);
const fileShasum = fileHash.digest("hex");

const expectedMagicNumber = getMagicNumberOfExtension(extension);
const actualMagicNumber: Uint8Array = new Uint8Array(
Expand All @@ -309,14 +306,18 @@ export async function handlePublish(
);
}

// console.log(
// `os=${os}, arch=${arch}, version=${version}, extension=${extension}, shasum=${fileShasum}, size=${file.size.toString()}`,
// );

artifactFiles.push(file);

artifacts.push({
os: os,
arch: arch,
version: version,
extension: extension,
fileShasum: fileHash.digest("hex"),
fileShasum: fileShasum,
fileSize: file.size,
});
}
Expand Down

0 comments on commit ee355f5

Please sign in to comment.