File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,6 @@ class LSTM {
152
152
}
153
153
}
154
154
155
- const LSTMGenerator = ( modelPath = './' , callback ) => {
156
- return new LSTM ( modelPath , callback ) ;
157
- } ;
155
+ const LSTMGenerator = ( modelPath = './' , callback ) => new LSTM ( modelPath , callback ) ;
158
156
159
157
export default LSTMGenerator ;
Original file line number Diff line number Diff line change @@ -117,8 +117,6 @@ class Word2Vec {
117
117
}
118
118
}
119
119
120
- const word2vec = ( model , cb ) => {
121
- return new Word2Vec ( model , cb ) ;
122
- } ;
120
+ const word2vec = ( model , cb ) => new Word2Vec ( model , cb ) ;
123
121
124
122
export default word2vec ;
Original file line number Diff line number Diff line change 6
6
export default function callCallback ( promise , callback ) {
7
7
if ( callback ) {
8
8
promise
9
- . then ( result => {
9
+ . then ( ( result ) => {
10
10
callback ( undefined , result ) ;
11
11
return result ;
12
12
} )
13
- . catch ( error => {
13
+ . catch ( ( error ) => {
14
14
callback ( error ) ;
15
15
} ) ;
16
16
}
You can’t perform that action at this time.
0 commit comments