Skip to content

Commit 4a6405b

Browse files
author
Sachin Maheshwari
committed
for fixing circleCI issue, pulled corressponding changes from dev branch
1 parent 7e74625 commit 4a6405b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

config/constants/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ module.exports = (() => {
22
const branch = process.env.CIRCLE_BRANCH || 'dev'
33

44
// for security reason don't let to require any arbitrary file defined in process.env
5-
if (['dev', 'master', 'qa'].indexOf(branch) < 0) {
6-
throw Error('Unsupported CIRCLE_BRANCH value.')
5+
if (['master', 'qa'].indexOf(branch) < 0) {
6+
return require('./dev')
77
}
8-
98
return require('./' + branch)
109
})()

0 commit comments

Comments
 (0)