Skip to content

Commit 1f1d67f

Browse files
authored
Merge pull request #7666 from LibreSign/backport/7661/stable32
[stable32] refactor: use default DataResponse success constructor in id docs
2 parents 2bb1d45 + 989f48a commit 1f1d67f

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)