summaryrefslogtreecommitdiff
path: root/lib/courseware.js
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2014-06-16 00:10:43 +0100
committerprzemyslawpluta <przemekpluta@hotmail.com>2014-06-16 00:10:43 +0100
commit1e4b910edd0c55f0332a9797c143dfa077aa31b4 (patch)
treea1d5c08bb3366df35cc730dbdd8d91885b2a57de /lib/courseware.js
parent25e77d7f8603a5d3841f6214c18bb86b914ca30e (diff)
downloadmongo-edu-1e4b910edd0c55f0332a9797c143dfa077aa31b4.zip
update
add ordered course list version bump
Diffstat (limited to 'lib/courseware.js')
-rw-r--r--lib/courseware.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/courseware.js b/lib/courseware.js
index 08ad194..1a8c0fb 100644
--- a/lib/courseware.js
+++ b/lib/courseware.js
@@ -23,8 +23,7 @@ function saveData(argv, details, data, callback) {
details = details.map(function items(item) { return item.replace(/[^a-z0-9]/gi, '_').replace(/(_){2,}/g, '_'); });
-
- fs.writeFile(argv.d + details[0] + '-' + details[1] + '.txt', data.join((!isWin) ? '\n' : '\r\n'), function (err) {
+ fs.writeFile(argv.d + details[0] + '-' + details[1] + '.txt', data.join((!isWin) ? '\n' : '\r\n'), function write(err) {
if (err !== null) { return console.log(err.stack); }
console.log('[' + '>'.magenta + '] Video list generated with ' + data.length + ' item' + ((data.length > 1)? 's.' : '.'));