summaryrefslogtreecommitdiff
path: root/lib/initialize.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/initialize.js')
-rw-r--r--lib/initialize.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/initialize.js b/lib/initialize.js
index 127b0c6..451c734 100644
--- a/lib/initialize.js
+++ b/lib/initialize.js
@@ -21,7 +21,7 @@ function checkName(profile) {
'use strict';
var greetings = 'Hi ';
- return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ((!isWin) ? ' ' + emoji.smile : '');
+ return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ((!isWin) ? ' ' + emoji.smile + ' ' : '.');
}
module.exports = function run(profile, argv) {
@@ -60,11 +60,11 @@ module.exports = function run(profile, argv) {
function processList(data, profile) {
if (!data.length) {
- if (profile.noCourses) { return console.log('i'.red + ' ' + checkName(profile) + ' ' + profile.noCourses); }
- return console.log('i'.red + ' ' + checkName(profile) + ' ' + 'Could not locate any courses in your profile. Have you registered already?\n');
+ if (profile.noCourses) { return console.log('i'.red + ' ' + checkName(profile) + ' ' + profile.noCourses); }
+ return console.log('i'.red + ' ' + checkName(profile) + ' ' + 'Could not locate any courses in your profile. Have you registered already?\n');
}
- classes[0].message = checkName(profile) + ' . Found ' + data.length + ' Course'+ ((data.length > 1)? 's' : '') + '. Select:';
+ classes[0].message = checkName(profile) + ' Found ' + data.length + ' Course'+ ((data.length > 1)? 's' : '') + '. Select:';
classes[0].choices = data;
currentList();