Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Nov 7, 2019
1 parent fcc18f8 commit b803076
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/normalize-arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const normalizeArguments = (url: URLOrOptions, options?: Options, default
if (options.url.startsWith('/')) {
throw new Error('`url` must not begin with a slash when using `prefixUrl`');
} else {
options.url = options.prefixUrl.toString() + url;
options.url = options.prefixUrl.toString() + options.url;
}
}

Expand Down Expand Up @@ -248,6 +248,8 @@ export const normalizeRequestArguments = async (options: NormalizedOptions): Pro
if (matches?.groups) {
const {socketPath, path} = matches.groups;

// It's a bug!
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
options = {
...options,
socketPath,
Expand Down

0 comments on commit b803076

Please sign in to comment.