[libgnome-games-support/ricotz/vala] tests: Casting to "void" is not allowed
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-games-support/ricotz/vala] tests: Casting to "void" is not allowed
- Date: Tue, 14 Sep 2021 07:25:31 +0000 (UTC)
commit 79e777dfd44f67147045cb890b65596a0beb5c82
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Sep 14 09:24:35 2021 +0200
tests: Casting to "void" is not allowed
tests/test-scores.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-scores.vala b/tests/test-scores.vala
index e8e313c..020d373 100644
--- a/tests/test-scores.vala
+++ b/tests/test-scores.vala
@@ -33,7 +33,7 @@ private void add_score_sync (Context context, int score, Category category) {
context.add_score.begin (score, category, null, (object, result) => {
try
{
- (void) context.add_score.end (result);
+ context.add_score.end (result);
}
catch (Error e)
{
@@ -254,7 +254,7 @@ private void test_import_from_history_file ()
private void test_import_from_nonexistent_history_file ()
{
- (void) new Context.with_importer (
+ var context = new Context.with_importer (
"libgnome-games-support-test",
"",
null,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]