mirror of
https://github.com/danbulant/docker-compose
synced 2026-06-10 18:21:39 +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 [address, port] = result.out.split(':')
|
||||
return {
|
||||
exitCode: result.exitCode,
|
||||
out: result.out,
|
||||
err: result.err,
|
||||
...result,
|
||||
result: {
|
||||
address,
|
||||
port: Number(port)
|
||||
|
|
|
|||
Loading…
Reference in a new issue