Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring code for standard formatting and removing dead code and v…
…ariables: part I
- Loading branch information
Showing
62 changed files
with
2,806 additions
and
3,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
var rootDir = process.cwd(), | ||
winston = require('winston') | ||
var rootDir = process.cwd() | ||
var winston = require('winston') | ||
|
||
var self = module.exports = { | ||
module.exports = { | ||
|
||
loadAll: function (app, service, callback) { | ||
|
||
winston.info('Loading controllers ...'.yellow) | ||
require(rootDir + '/server/controllers/app-control').init(app) | ||
|
||
winston.info('All controllers loaded.'.green) | ||
if (typeof callback === 'function') { | ||
callback() | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.