1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

tests: remove redundant type assertion (#11794)

This commit is contained in:
Feng Yu 2021-08-21 14:55:28 +08:00 committed by GitHub
parent 6f63d739ab
commit 4c1e56b2f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,8 +102,7 @@ unitTest(function urlSearchParamsInitRecord() {
unitTest(function urlSearchParamsInit() {
const params1 = new URLSearchParams("a=b");
assertEquals(params1.toString(), "a=b");
// deno-lint-ignore no-explicit-any
const params2 = new URLSearchParams(params1 as any);
const params2 = new URLSearchParams(params1);
assertEquals(params2.toString(), "a=b");
});