From 85361a58ce5b6cf6e79ec3a100d2d05b10d664d7 Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Fri, 8 Jul 2022 22:32:10 -0400 Subject: [PATCH] refactor: use a lot more Object.entries --- src/utils/resolveJoins.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/resolveJoins.js b/src/utils/resolveJoins.js index d3c2b713e..c7c4a0549 100644 --- a/src/utils/resolveJoins.js +++ b/src/utils/resolveJoins.js @@ -1,4 +1,4 @@ -const { keys } = Object +const { entries } = Object // Used to resolve Fn::Join in environment variables export default function resolveJoins(environment) { @@ -8,8 +8,7 @@ export default function resolveJoins(environment) { const newEnv = {} - keys(environment).forEach((key) => { - const value = environment[key] + entries(environment).forEach(([key, value]) => { if (!value) { return }