[libgnome-games-support/ricotz/vala: 2/2] tests: Casting to "void" is not allowed
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-games-support/ricotz/vala: 2/2] tests: Casting to "void" is not allowed
- Date: Sun, 19 Sep 2021 15:35:06 +0000 (UTC)
commit ba8362cfa2f945d97c4ad3cdd78608fa02b99db9
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]