Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nils Ove Tendenes <50194012+NilsOveTen@users.noreply.github.com>
  • Loading branch information
hegeaal and NilsOveTen authored Apr 15, 2024
1 parent 029b2f4 commit 3cfa7fe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ class UpdateService(
completeMetaModel.add(serviceMetaModel)

turtleService.getDataService(dataService.fdkId, withRecords = false)
?.let { conceptNoRecords -> parseRDFResponse(conceptNoRecords, Lang.TURTLE, null) }
?.let { conceptModelNoRecords -> serviceMetaModel
.union(conceptModelNoRecords)
?.let { dataServiceNoRecords -> parseRDFResponse(dataServiceNoRecords, Lang.TURTLE, null) }
?.let { dataServiceModelNoRecords -> serviceMetaModel
.union(dataServiceModelNoRecords)
.union(catalogTriples)
}
?.run { turtleService.saveAsDataService(this, fdkId = dataService.fdkId, withRecords = true) }
Expand Down

0 comments on commit 3cfa7fe

Please sign in to comment.