Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Oct 5, 2023
1 parent ade4f12 commit caf5025
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/os_compatibility_test.ts → bin/os_compatibility.ts
Expand Up @@ -144,8 +144,10 @@ const getLink = async function (m: Msg): Promise<void> {
const bucket = await js.views.os(testRequest.bucket);
const object = await bucket.getBlob(testRequest.object);

const hash = sha256(object);
m.respond(hash);
if (object) {
const hash = sha256(object);
m.respond(hash);
}
};

const putLink = async function (m: Msg): Promise<void> {
Expand All @@ -164,7 +166,7 @@ const putLink = async function (m: Msg): Promise<void> {
m.respond();
};

const result = function (test: String) {
const result = function (test: string) {
return function (message: Msg): Promise<void> {
if (message.headers) {
console.log(`test ${test} failed`);
Expand Down

0 comments on commit caf5025

Please sign in to comment.