Skip to content

Commit

Permalink
fixup! feat: implement requestThingDescription for FileClient
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Nov 23, 2023
1 parent b67162d commit 23af943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-file/src/file-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class FileClient implements ProtocolClient {
}

Check warning on line 65 in packages/binding-file/src/file-client.ts

View check run for this annotation

Codecov / codecov/patch

packages/binding-file/src/file-client.ts#L60-L65

Added lines #L60 - L65 were not covered by tests
public async readResource(form: Form): Promise<Content> {
const filepath = form.href.split("//")[1];
const filepath = new URL(form.href).pathname;
return this.readFile(filepath, form.contentType);

Check warning on line 68 in packages/binding-file/src/file-client.ts

View check run for this annotation

Codecov / codecov/patch

packages/binding-file/src/file-client.ts#L67-L68

Added lines #L67 - L68 were not covered by tests
}

Expand Down

0 comments on commit 23af943

Please sign in to comment.