Skip to content

Commit

Permalink
refactor: remove redundant condition in color assignment logic of ima…
Browse files Browse the repository at this point in the history
…gery library
  • Loading branch information
Sharansrj567 committed Jan 12, 2024
1 parent f7650a9 commit 36dbcb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/imagery/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ int I_init_ref_color_nums(struct Ref *ref)
ref->grn.index = NULL;
ref->blu.index = NULL;

if (ref->nfiles <= 0 || ref->red.n >= 0 || ref->blu.n >= 0 ||
ref->blu.n >= 0)
if (ref->nfiles <= 0 || ref->red.n >= 0 || ref->blu.n >= 0)
return 1;
switch (ref->nfiles) {
case 1:
Expand Down

0 comments on commit 36dbcb6

Please sign in to comment.