Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 01025c6

Browse files
Review fixes
1 parent a6299a4 commit 01025c6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/common/helper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const schemaForRC = Joi.object({
2626
function readFromRCFile (filename, cliParams) {
2727
logger.info('Reading from topcoder rc file...')
2828
const rcObject = JSON.parse(fs.readFileSync(filename).toString())
29-
cliParams.challengeIds = cliParams.challengeIds.split(',')
29+
if (cliParams.challengeIds) {
30+
cliParams.challengeIds = cliParams.challengeIds.split(',')
31+
}
3032
// Override values from RC file with CLI params
3133
return validateRCObject(_.merge(rcObject, _.pick(cliParams, ['username', 'password', 'challengeIds'])))
3234
}

src/services/uploadSubmissionService.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const logger = require('../common/logger')
1616
*/
1717
async function smart (currDir, cliParams) {
1818
const { username, password, challengeIds } = helper.readFromRCFile(path.join(currDir, constants.rc.name), cliParams)
19-
console.log(username)
20-
console.log(password)
21-
console.log(challengeIds)
2219
const userId = await helper.getUserId(username)
2320
const submissionName = helper.submissionNameFromUserId(userId)
2421
const submissionData = helper.archiveCodebase(currDir)

0 commit comments

Comments
 (0)