Skip to content

Commit

Permalink
let vs. const bugfixing
Browse files Browse the repository at this point in the history
* Converted some 'let's to 'const's
* Converted some 'const's to 'let's
* Version 1.2.4
  • Loading branch information
aneesh-neelam committed Jul 22, 2015
1 parent f305efa commit fb70794
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ exports.get = function (app, data, callback) {
const clientCollection = app.db.collection('client');
const messageCollection = app.db.collection('message');
const contributorCollection = app.db.collection('contributor');
let parallelTasks = {
const parallelTasks = {
client: function (asyncCallback) {
let keys = {
const keys = {
android: 1,
ios: 1,
windows: 1
Expand Down
2 changes: 1 addition & 1 deletion api/txtweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const status = require(path.join(__dirname, '..', 'status'));


const parseMessage = function (app, data, callback) {
const reply = [
let reply = [
'Register with the VITacademics SMS Service: @vitacademics register [Campus] [RegNo] [DoB]',
'Get Course Details: @vitacademics course [CourseCode]',
'Get Today\'s Classes: @vitacademics today',
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async.waterfall([

// Catch 404 and forward to error handler
app.use(function (req, res, next) {
let err = new Error('Not Found');
const err = new Error('Not Found');
err.status = 404;
next(err);
});
Expand Down
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const handleMain = require(path.join(__dirname, 'handlers', 'main'));
const handleMobile = require(path.join(__dirname, 'handlers', 'mobile'));
const handleShare = require(path.join(__dirname, 'handlers', 'share'));

let app = {};
const app = {};
/*
var onConnect = function (err, db) {
app.db = db;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitacademics",
"version": "1.2.3",
"version": "1.2.4",
"description": "VITacademics API Server and Web App",
"homepage": "https://vitacademics-rel.herokuapp.com/",
"bugs": {
Expand Down

0 comments on commit fb70794

Please sign in to comment.