mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
remove unused inline function
This commit is contained in:
parent
a4117487e9
commit
a955b8fcc9
1 changed files with 1 additions and 8 deletions
|
@ -20,14 +20,7 @@ CooldownManager = require '../Cooldown/CooldownManager'
|
|||
|
||||
module.exports = ProjectEntityHandler =
|
||||
getAllFolders: (project_id, callback) ->
|
||||
logger.log project_id:project_id, "getting all folders for project"
|
||||
folders = {}
|
||||
processFolder = (basePath, folder) ->
|
||||
folders[basePath] = folder
|
||||
for childFolder in (folder.folders or [])
|
||||
if childFolder.name?
|
||||
processFolder path.join(basePath, childFolder.name), childFolder
|
||||
|
||||
logger.log project_id:project_id, "getting all folders for project"
|
||||
ProjectGetter.getProjectWithoutDocLines project_id, (err, project) ->
|
||||
return callback(err) if err?
|
||||
return callback("no project") if !project?
|
||||
|
|
Loading…
Reference in a new issue