Skip to content

Commit 6d630b0

Browse files
committed
fix lint issues
1 parent d7b9e86 commit 6d630b0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/actions/smp.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ function deleteSubmissionInit() {}
2323
* @return {Action}
2424
*/
2525
function deleteSubmissionDone(tokenV5, submissionId) {
26-
const submissionsService = getSubmissionService(tokenV5);
27-
const filters = { legacySubmissionId: submissionId };
26+
const submissionsService = getSubmissionService(tokenV5);
27+
const filters = { legacySubmissionId: submissionId };
2828

29-
// from the legacy submissionId first get the GUID of the submission
30-
// and pass that id to the V5 api
31-
submissionsService.getSubmissions(filters, {})
32-
.then(submissions => {
33-
if (submissions.length === 0) {
34-
throw new Error(`Submission ${submissionId} does not exist.`);
35-
}
36-
return getApi('V5', tokenV5).delete(`/submissions/${submissions[0].id}`)
37-
.then(res => (res.ok ? submissionId : new Error(res.statusText)))
38-
.then(res => res);
39-
});
29+
// from the legacy submissionId first get the GUID of the submission
30+
// and pass that id to the V5 api
31+
submissionsService.getSubmissions(filters, {})
32+
.then((submissions) => {
33+
if (submissions.length === 0) {
34+
throw new Error(`Submission ${submissionId} does not exist.`);
35+
}
36+
return getApi('V5', tokenV5).delete(`/submissions/${submissions[0].id}`)
37+
.then(res => (res.ok ? submissionId : new Error(res.statusText)))
38+
.then(res => res);
39+
});
4040
}
4141

4242
/**

0 commit comments

Comments
 (0)