Skip to content

Commit 14f33b9

Browse files
committed
refactor
1 parent 6d99ee7 commit 14f33b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bot/src/main/scala/com/github/mmvpm/bot/manager/ofs/OfsManagerImpl.scala

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ class OfsManagerImpl[F[_]: Monad](ofsClient: OfsClient[F], sessionStorage: Stora
4343
offerIds <- ofsClient.search(query).map(_.offerIds)
4444
offers <- ofsClient.getOffers(offerIds).map(_.offers)
4545
fullOffers <- offers.traverse { offer =>
46-
if (offer.source.isEmpty) {
46+
if (offer.source.isEmpty)
4747
ofsClient.getUser(offer.userId).map(u => FullOffer(offer, u.user))
48-
} else {
48+
else
4949
EitherT.pure[F, OfsClientError](FullOffer(offer, ParsedUser))
50-
}
5150
}
5251
} yield fullOffers).handleDefaultErrors
5352

0 commit comments

Comments
 (0)