Skip to content

Commit dee4ed0

Browse files
committed
early exit
1 parent b28c65b commit dee4ed0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/helper.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,18 @@ function dryRun(config, path, form) {
170170
}),
171171
form: qs.stringify(form)
172172
};
173-
} else {
174-
return {
175-
url: url.format({
176-
protocol: config.protocol,
177-
hostname: config.hostname,
178-
port: (config.port !== 80 && config.port !== 443 ?
179-
config.port : undefined),
180-
pathname: path.pathname,
181-
query: path.query
182-
})
183-
};
184173
}
174+
175+
return {
176+
url: url.format({
177+
protocol: config.protocol,
178+
hostname: config.hostname,
179+
port: (config.port !== 80 && config.port !== 443 ?
180+
config.port : undefined),
181+
pathname: path.pathname,
182+
query: path.query
183+
})
184+
};
185185
}
186186

187187
// Normalize server config

0 commit comments

Comments
 (0)