add lint ignore comment

This commit is contained in:
krawieck 2020-09-18 16:16:39 +02:00
parent baea08f857
commit 620c2a6ee4
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ class _Voting extends HookWidget {
final res = await api.createPostLike(
postId: post.id, score: vote, auth: token.raw);
myVote.value = res.myVote;
// ignore: avoid_catches_without_on_clauses
} catch (e) {
Scaffold.of(context)
.showSnackBar(SnackBar(content: Text('voting failed :(')));