From f4221352007a08c6d3ea13589cd7ea6aab4578b8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 27 May 2014 07:36:54 -0400 Subject: [PATCH] chore(time) rm main --- lib/server/time.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/server/time.js b/lib/server/time.js index 864bc10c..34ac2b78 100644 --- a/lib/server/time.js +++ b/lib/server/time.js @@ -1,17 +1,16 @@ (function (object) { 'use strict'; - if(!global.cloudcmd) - return console.log( - '# time.js' + '\n' + - '# -----------' + '\n' + - '# Module is part of Cloud Commander,' + '\n' + - '# used for getting file change time.' + '\n' + - '# http://cloudcmd.io' + '\n'); + /* + '# time.js' + '\n' + + '# -----------' + '\n' + + '# Module is part of Cloud Commander,' + '\n' + + '# used for getting file change time.' + '\n' + + '# http://cloudcmd.io' + '\n'; + */ - var main = global.cloudcmd.main, - fs = require('fs'), - Util = main.util; + var fs = require('fs'), + Util = require('../util'); object.get = function(filename, options, callback) { var noOptions = Util.isFunction(options); @@ -30,7 +29,6 @@ else timeRet = time.getTime(); } - Util.exec(callback, error, timeRet); });