Skip to content

Commit e035257

Browse files
authored
Merge pull request #7661 from LibreSign/refactor/remove-iddocs-success-messages
refactor: use default DataResponse success constructor in id docs
2 parents 5705a0e + 8533c12 commit e035257

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Controller/IdDocsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function addFiles(array $files): DataResponse {
7373
} else {
7474
throw new Exception('Invalid data');
7575
}
76-
return new DataResponse([], Http::STATUS_OK);
76+
return new DataResponse();
7777
} catch (\Exception $exception) {
7878
$exceptionData = json_decode($exception->getMessage());
7979
if (isset($exceptionData->file)) {
@@ -122,7 +122,7 @@ public function delete(int $nodeId, ?string $uuid = null): DataResponse {
122122
} else {
123123
throw new Exception('Invalid data');
124124
}
125-
return new DataResponse([], Http::STATUS_OK);
125+
return new DataResponse();
126126
} catch (\Exception $exception) {
127127
return new DataResponse(
128128
[

0 commit comments

Comments
 (0)