mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Follow @roschaefer suggestion/remove guard clauses
This commit is contained in:
parent
12236c9324
commit
0a50a02f88
@ -106,7 +106,6 @@ export default {
|
||||
})
|
||||
try {
|
||||
const reports = await reportReadTxPromise
|
||||
if (!reports) return []
|
||||
return reports
|
||||
} finally {
|
||||
session.close()
|
||||
@ -135,7 +134,6 @@ export default {
|
||||
})
|
||||
try {
|
||||
const filedReports = await readTxPromise
|
||||
if (!filedReports) return []
|
||||
filed = filedReports.map(reportedRecord => {
|
||||
const { submitter, filed } = reportedRecord
|
||||
const relationshipWithNestedAttributes = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user