Skip to content

Commit eb05335

Browse files
committed
🎨 removed duplicate code
1 parent 8f8d5af commit eb05335

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bin/helpers/utils.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,7 @@ exports.setSpecTimeout = (bsConfig, args) => {
390390
logger.debug(`Setting spec timeout = ${specTimeout}`);
391391
}
392392

393-
exports.isValidTimezone = (timezone) => {
394-
if(!this.isUndefined(timezone) && !this.isUndefined(TIMEZONE[timezone])) {
395-
return true;
396-
}
397-
return false;
398-
}
393+
exports.isValidTimezone = (timezone) => !this.isUndefined(timezone) && !this.isUndefined(TIMEZONE[timezone])
399394

400395
exports.setTimezone = (bsConfig, args) => {
401396
let timezone = args.timezone || bsConfig.run_settings.timezone;

0 commit comments

Comments
 (0)