File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/main/kotlin/no/nav/klage/document/api Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,8 @@ class DocumentController(
60
60
input.json
61
61
)
62
62
63
- var mapToDocumentView: DocumentView
64
- try {
65
- mapToDocumentView = mapToDocumentView(
63
+ return try {
64
+ mapToDocumentView(
66
65
documentService.updateDocument(
67
66
documentId = documentId,
68
67
json = input.json,
@@ -72,16 +71,14 @@ class DocumentController(
72
71
} catch (e: Exception ) {
73
72
logger.warn(" Failed to update document $documentId . Trying one more time." , e)
74
73
75
- mapToDocumentView = mapToDocumentView (
74
+ mapToDocumentView(
76
75
documentService.updateDocument(
77
76
documentId = documentId,
78
77
json = input.json,
79
78
currentVersion = input.currentVersion,
80
79
)
81
80
)
82
81
}
83
-
84
- return mapToDocumentView
85
82
}
86
83
87
84
@Operation(
You can’t perform that action at this time.
0 commit comments