File tree Expand file tree Collapse file tree 1 file changed +10
-18
lines changed
lib/node_modules/@stdlib/_tools/github/create-repo/lib Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,13 @@ function factory( options, clbk ) {
80
80
if ( ! isFunction ( clbk ) ) {
81
81
throw new TypeError ( format ( 'invalid argument. Callback argument must be a function. Value: `%s`.' , clbk ) ) ;
82
82
}
83
- return createRepo ;
83
+
84
+ function done ( error , data , info ) {
85
+ error = error || null ;
86
+ data = data || null ;
87
+ info = info || null ;
88
+ clbk ( error , data , info ) ;
89
+ }
84
90
85
91
/**
86
92
* Creates a GitHub repository.
@@ -95,24 +101,10 @@ function factory( options, clbk ) {
95
101
throw new TypeError ( format ( 'invalid argument. Repository name must be a string. Value: `%s`.' , name ) ) ;
96
102
}
97
103
query ( name , opts , done ) ;
98
- /**
99
- * Callback invoked after receiving an API response.
100
- *
101
- * @private
102
- * @param {(Error|null) } error - error object
103
- * @param {ObjectArray } data - query data
104
- * @param {Object } info - response info
105
- * @returns {void }
106
- */
107
- function done ( error , data , info ) {
108
- error = error || null ;
109
- data = data || null ;
110
- info = info || null ;
111
- clbk ( error , data , info ) ;
112
- }
113
- }
114
- }
104
+ }
115
105
106
+ return createRepo ;
107
+ }
116
108
117
109
// EXPORTS //
118
110
You can’t perform that action at this time.
0 commit comments