Skip to content

Commit c97c406

Browse files
committed
fix ProxyConfig type when checking length
Signed-off-by: CrazyMax <[email protected]>
1 parent 47d5369 commit c97c406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ actionsToolkit.run(
4848
if (dockerConfig && dockerConfig.proxies) {
4949
for (const host in dockerConfig.proxies) {
5050
let prefix = '';
51-
if (dockerConfig.proxies.length > 1) {
51+
if (Object.keys(dockerConfig.proxies).length > 1) {
5252
prefix = ' ';
5353
core.info(host);
5454
}

0 commit comments

Comments
 (0)