Skip to content

Commit 7a3358e

Browse files
change map to forEach
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
1 parent ae64a3e commit 7a3358e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/driver/src/cypress/screenshot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ const validate = (props, cmd, log) => {
133133
values.capture = capture
134134
}
135135

136-
['scale', 'disableTimersAndAnimations', 'screenshotOnRunFailure', 'overwrite'].map((key) => {
137-
return validateAndSetBoolean(props, values, cmd, log, key)
136+
['scale', 'disableTimersAndAnimations', 'screenshotOnRunFailure', 'overwrite'].forEach((key) => {
137+
validateAndSetBoolean(props, values, cmd, log, key)
138138
})
139139

140140
if (blackout) {

0 commit comments

Comments
 (0)