mirror of
https://github.com/danbulant/docker-compose
synced 2026-06-24 17:31:53 +00:00
refactor: use spread operator to build typed result
This commit is contained in:
parent
70a98f473b
commit
aa26e83884
1 changed files with 1 additions and 3 deletions
|
|
@ -366,9 +366,7 @@ export const port = async function (
|
||||||
const result = await execCompose('port', args, options)
|
const result = await execCompose('port', args, options)
|
||||||
const [address, port] = result.out.split(':')
|
const [address, port] = result.out.split(':')
|
||||||
return {
|
return {
|
||||||
exitCode: result.exitCode,
|
...result,
|
||||||
out: result.out,
|
|
||||||
err: result.err,
|
|
||||||
result: {
|
result: {
|
||||||
address,
|
address,
|
||||||
port: Number(port)
|
port: Number(port)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue