Skip to content

Commit

Permalink
check more nil possible value
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Jul 2, 2024
1 parent 593425f commit 22f982a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,18 @@ GLPHModelImporter >> importMergeResquestAuthor: aGLPHEMergeRequest [
GLPHModelImporter >> importMergeResquestMerger: aGLPHEMergeRequest [

| authorID |
aGLPHEMergeRequest merge_user ifNotNil: [ ^ aGLPHEMergeRequest merge_user ].
aGLPHEMergeRequest merge_user ifNotNil: [
^ aGLPHEMergeRequest merge_user ].
authorID := aGLPHEMergeRequest cacheAt: #mergeUserID ifAbsent: [
(generalReader
on: (self glhApi
mergeRequestOfProject:
aGLPHEMergeRequest project_id
withId: aGLPHEMergeRequest iid) readStream;
next) at: #merge_user at: #id ].
next)
at: #merge_user
ifPresent: [ :mergeUser |
mergeUser ifNotNil: [ :mruser | mruser at: #id ] ] ].
aGLPHEMergeRequest merge_user: (self importUser: authorID)
]

Expand Down

0 comments on commit 22f982a

Please sign in to comment.