Skip to content

Commit be3462d

Browse files
committed
Revert "Revert init hooks not being called on empty options"
This reverts commit a398e36.
1 parent 439fb82 commit be3462d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/core/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ export default class Options {
803803
}
804804
} else {
805805
try {
806-
this.merge(options ?? {});
806+
this.merge(options);
807807
} finally {
808808
if (options?.url !== undefined) {
809809
if (input === undefined) {

test/create.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ test('does not include the `request` option in normalized `http` options', withS
233233
});
234234

235235
test('should pass an options object into an initialization hook after .extend', withServer, async (t, server, got) => {
236-
t.plan(2);
236+
t.plan(1);
237237

238238
server.get('/', echoHeaders);
239239

0 commit comments

Comments
 (0)