diff --git a/ts/smartnetwork.classes.smartnetwork.ts b/ts/smartnetwork.classes.smartnetwork.ts index d4683ec..e733eed 100644 --- a/ts/smartnetwork.classes.smartnetwork.ts +++ b/ts/smartnetwork.classes.smartnetwork.ts @@ -108,9 +108,7 @@ export class SmartNetwork { public async isRemotePortAvailable(domainArg: string, portArg?: number): Promise { const done = plugins.smartpromise.defer(); const domainPart = domainArg.split(':')[0]; - const port = (() => { - return portArg ? portArg : parseInt(domainArg.split(':')[1], 10); - })() + const port = portArg ? portArg : parseInt(domainArg.split(':')[1], 10); plugins.portscanner.checkPortStatus(port, domainPart, (err, status ) => { if (err) {