Skip to content

Commit

Permalink
refactor: use a lot more Object.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jul 9, 2022
1 parent 86c5280 commit 85361a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/resolveJoins.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { keys } = Object
const { entries } = Object

// Used to resolve Fn::Join in environment variables
export default function resolveJoins(environment) {
Expand All @@ -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
}
Expand Down

0 comments on commit 85361a5

Please sign in to comment.