diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-25 16:14:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-26 10:01:42 +0200 |
commit | 98ab5dc81048d47d08a231f17698128f959e59b2 (patch) | |
tree | 7f74f835dc35d9f72918c56857f7f28b70d7053f /server/lib/moderation.ts | |
parent | 851675c5591dcab1070183f0ed1b1a788de07d2c (diff) | |
download | PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.gz PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.zst PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.zip |
Remove useless async
Diffstat (limited to 'server/lib/moderation.ts')
-rw-r--r-- | server/lib/moderation.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/moderation.ts b/server/lib/moderation.ts index a42ab5b7f..456b615b2 100644 --- a/server/lib/moderation.ts +++ b/server/lib/moderation.ts | |||
@@ -170,8 +170,8 @@ function createAccountAbuse (options: { | |||
170 | }) { | 170 | }) { |
171 | const { baseAbuse, accountInstance, transaction, reporterAccount } = options | 171 | const { baseAbuse, accountInstance, transaction, reporterAccount } = options |
172 | 172 | ||
173 | const associateFun = async () => { | 173 | const associateFun = () => { |
174 | return { isOwned: accountInstance.isOwned() } | 174 | return Promise.resolve({ isOwned: accountInstance.isOwned() }) |
175 | } | 175 | } |
176 | 176 | ||
177 | return createAbuse({ | 177 | return createAbuse({ |