Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bkolad committed Dec 5, 2023
1 parent 7fecbf5 commit 8bf7592
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/snap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const onRpcRequest: OnRpcRequestHandler = async ({
]),
},
});

if (!approved) {
throw providerErrors.userRejectedRequest();
}
Expand Down
3 changes: 1 addition & 2 deletions packages/snap/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Bytes } from '@metamask/utils';
import { Bip32PathStruct } from '@metamask/snaps-utils/*';
import { Infer, boolean, enums, object, optional, type, string, number, array } from 'superstruct';
import { Infer, boolean, object, optional, type, string, number, array } from 'superstruct';

Check failure on line 2 in packages/snap/src/types.ts

View workflow job for this annotation

GitHub Actions / Lint

'superstruct' should be listed in the project's dependencies. Run 'npm i -S superstruct' to add it

Check failure on line 2 in packages/snap/src/types.ts

View workflow job for this annotation

GitHub Actions / Lint

Import "Infer" is only used as types

Check failure on line 2 in packages/snap/src/types.ts

View workflow job for this annotation

GitHub Actions / Lint

Replace `·Infer,·boolean,·object,·optional,·type,·string,·number,·array·}·from·'superstruct';⏎` with `⏎··Infer,⏎··boolean,⏎··object,⏎··optional,⏎··type,⏎··string,⏎··number,⏎··array,⏎}·from·'superstruct';`


/**
Expand Down

0 comments on commit 8bf7592

Please sign in to comment.