Skip to content

Commit

Permalink
chore: remove dupe resource type prefix from error (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Feb 28, 2024
1 parent 970aa10 commit 53d227c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/common/src/hexToResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export function hexToResource(hex: Hex): Resource {
const name = hexToString(sliceHex(hex, 16, 32)).replace(/\0+$/, "");

if (!type) {
throw new Error(
`Unknown type (${resourceTypeId}) for resource (${resourceTypeId}:${resourceToLabel({ namespace, name })})`
);
throw new Error(`Unknown type (${resourceTypeId}) for resource (${resourceToLabel({ namespace, name })})`);
}

return { resourceId: hex, type, namespace, name };
Expand Down

0 comments on commit 53d227c

Please sign in to comment.