File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -36,30 +36,18 @@ function getTask(taskName) {
3636 try {
3737 const task = require ( taskInfo . path ) ;
3838 return {
39- task,
40- specVersion : taskInfo . specVersion
39+ task
4140 } ;
4241 } catch ( err ) {
4342 throw new Error ( `taskRepository: Failed to require task module for ${ taskName } : ${ err . message } ` ) ;
4443 }
4544}
4645
47- function addTask ( { name, specVersion, taskPath} ) {
48- if ( taskInfos [ name ] ) {
49- throw new Error ( `taskRepository: A task with the name ${ name } has already been registered` ) ;
50- }
51- taskInfos [ name ] = {
52- path : taskPath ,
53- specVersion
54- } ;
55- }
56-
5746function getAllTaskNames ( ) {
5847 return Object . keys ( taskInfos ) ;
5948}
6049
6150module . exports = {
6251 getTask,
63- addTask,
6452 getAllTaskNames
6553} ;
You can’t perform that action at this time.
0 commit comments