Skip to content

Commit 8f8d5af

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/helpers/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ exports.isValidTimezone = (timezone) => {
399399

400400
exports.setTimezone = (bsConfig, args) => {
401401
let timezone = args.timezone || bsConfig.run_settings.timezone;
402-
if(this.isUndefined(timezone) && !this.isValidTimezone(timezone)){
402+
if(this.isUndefined(timezone) || !this.isValidTimezone(timezone)){
403403
logger.error(`Invalid timezone = ${timezone}`);
404404
syncCliLogger.info(chalk.red(Constants.userMessages.INVALID_TIMEZONE));
405405
process.exit(1);

0 commit comments

Comments
 (0)