grunt/lib/key.js
Function exports
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
var createKeyDir = function(){
if (true === fs.existsSync('/ddns/key')){
return q.resolve();
Function readKey
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var readKey = function(){
var deferred = q.defer();
qfs.readdir('/ddns/key')
.then(function(files){