How to use the private/core.noop function in private

To help you get started, we’ve selected a few private examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seedjs / seed / lib / commands / install.js View on Github external
response.forEach(function(packageInfo) {
          var desc = context.buildDescriptorFromRemote(packageInfo, remote);
          context.addDescriptor(desc, false); // don't overlay cache
          context.prepare(desc, CORE.noop); // can run in parallel
        });
github seedjs / seed / lib / remote.js View on Github external
CORE.fs.readdir_p(path, function(err, dirs) {
          if (err) return done(err);
          CORE.fs.rm_r(filepath, CORE.noop); // cleanup zipfile
          if (!dirs || (dirs.length===0)) return done(null, null);
          return done(null, CORE.path.join(path, dirs[0]));
        });
      });
github seedjs / seed / lib / remote.js View on Github external
CORE.fs.close(fd, function(err) {
        CORE.fs.rm(path, CORE.noop);
      });
    };