Skip to content

Commit

Permalink
chore: ts-ignore descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
agerard-godaddy committed Oct 23, 2024
1 parent e1377ce commit 7cf9e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gasket-plugin-https/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ async function startServer(gasket) {
} = serverOpts;

if (_http) {
// @ts-ignore
// @ts-ignore - http may not be an object, but we account for that
let _port = (typeof _http === 'number' ? _http : _http.port) ?? '';
if (_port) _port = `:${_port}`;

logger.info(`Server started at http://${_hostname}${_port}/`);
}

if (_https || _http2) {
// @ts-ignore
// @ts-ignore - http2 may be an array, but we account for that
let _port = (_https ?? _http2).port ?? '';
if (_port) _port = `:${_port}`;

Expand Down

0 comments on commit 7cf9e90

Please sign in to comment.