File tree 1 file changed +3
-6
lines changed 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,8 @@ class GitLabAPI {
184
184
return note as Types . MergeRequestNoteSchema
185
185
} catch ( e ) {
186
186
this . d ( "createMergeRequestNote" , e )
187
+ throw e
187
188
}
188
-
189
- return Promise . reject ( )
190
189
}
191
190
192
191
updateMergeRequestDiscussionNote = async (
@@ -207,9 +206,8 @@ class GitLabAPI {
207
206
return discussionNote as Types . MergeRequestDiscussionNoteSchema
208
207
} catch ( e ) {
209
208
this . d ( "updateMergeRequestDiscussionNote" , e )
209
+ throw e
210
210
}
211
-
212
- return Promise . reject ( )
213
211
}
214
212
215
213
updateMergeRequestNote = async ( id : number , body : string ) : Promise < Types . MergeRequestNoteSchema > => {
@@ -220,9 +218,8 @@ class GitLabAPI {
220
218
return note as Types . MergeRequestNoteSchema
221
219
} catch ( e ) {
222
220
this . d ( "updateMergeRequestNote" , e )
221
+ throw e
223
222
}
224
-
225
- return Promise . reject ( )
226
223
}
227
224
228
225
// note: deleting the _only_ discussion note in a discussion also deletes the discussion \o/
You can’t perform that action at this time.
0 commit comments