add lint ignore comment
This commit is contained in:
parent
baea08f857
commit
620c2a6ee4
|
@ -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 :(')));
|
||||
|
|
Loading…
Reference in New Issue