Skip to content

Commit 04a2872

Browse files
author
Chase Coalwell
authored
fix: remove generic and unused import (#577)
1 parent d3260df commit 04a2872

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/util-format-url/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { formatUrl } from "./";
2-
import { HttpRequest, QueryParameterBag } from "@aws-sdk/types";
2+
import { HttpRequest } from "@aws-sdk/types";
33

44
describe("format url", () => {
55
const requestTemplate: HttpRequest = {

packages/util-format-url/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { HttpRequest, QueryParameterBag } from "@aws-sdk/types";
1+
import { HttpRequest } from "@aws-sdk/types";
22
import { buildQueryString } from "@aws-sdk/querystring-builder";
33

4-
export function formatUrl<StreamType>(
5-
request: HttpRequest<StreamType>
6-
): string {
4+
export function formatUrl(request: HttpRequest): string {
75
let { protocol, path, hostname, port, query } = request;
86
if (protocol && protocol.substr(-1) !== ":") {
97
protocol += ":";

0 commit comments

Comments
 (0)