[sound-juicer] Simplify conditional
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Simplify conditional
- Date: Mon, 10 Oct 2016 10:34:58 +0000 (UTC)
commit 3648a040a11cdbadfa209a8538951da8cb9696cc
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Fri Oct 7 18:43:37 2016 +0100
Simplify conditional
Testing for ‘== TRUE’ is confusing, thanks to dcb for reporting this.
https://bugzilla.gnome.org/show_bug.cgi?id=746030
src/sj-main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/sj-main.c b/src/sj-main.c
index 79c88a8..6e90e8b 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -525,7 +525,7 @@ composer_show_hide (const char* genre)
composer_show = !sj_str_is_empty (current_album->composer);
for (l = current_album->tracks; l; l = g_list_next (l)) {
- if (!sj_str_is_empty (((TrackDetails*) (l->data))->composer) == TRUE) {
+ if (!sj_str_is_empty (((TrackDetails*) (l->data))->composer)) {
composer_show = TRUE;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]