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 4, 2023
1 parent 18fa6fb commit f7e3b6b
Show file tree
Hide file tree
Showing 3 changed files with 2,086 additions and 7 deletions.
8 changes: 5 additions & 3 deletions bin/os_compatibility_test.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 f7e3b6b

Please sign in to comment.