     if Module._cache.hasOwnProperty(resolvedPath) or resolvedPath.indexOf(cache.resourcePath) is 0
       return resolvedPath if satisfies(version, range)
 
-  undefined
+  return
 
 if cache.debug
   cache.loadCount = 0


      loadDependencies(childPath, rootPath, rootMetadata, moduleCache)

  undefined

loadFolderCompatibility = (modulePath, rootPath, rootMetadata, moduleCache) ->
  metadataPath = path.join(modulePath, 'package.json')


  metadata._atomModuleCache = moduleCache
  fs.writeFileSync(metadataPath, JSON.stringify(metadata, null, 2))

  return

exports.register = (resourcePath) ->
  return if cache.registered
