Skip to content

Commit fa20168

Browse files
committed
cleanup: Remove useless if clause
1 parent 7572888 commit fa20168

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

toxcore/Messenger.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,14 +2468,12 @@ static void do_friends(Messenger *m, void *userdata)
24682468
}
24692469
}
24702470

2471-
if (m->friendlist[i].status == FRIEND_REQUESTED
2472-
|| m->friendlist[i].status == FRIEND_CONFIRMED) { /* friend is not online. */
2473-
if (m->friendlist[i].status == FRIEND_REQUESTED) {
2474-
/* If we didn't connect to friend after successfully sending him a friend request the request is deemed
2475-
* unsuccessful so we set the status back to FRIEND_ADDED and try again.
2476-
*/
2477-
check_friend_request_timed_out(m, i, temp_time, userdata);
2478-
}
2471+
if (m->friendlist[i].status == FRIEND_REQUESTED) {
2472+
/* If we didn't connect to friend after successfully sending him a friend
2473+
* request the request is deemed unsuccessful so we set the status back to
2474+
* FRIEND_ADDED and try again.
2475+
*/
2476+
check_friend_request_timed_out(m, i, temp_time, userdata);
24792477
}
24802478

24812479
if (m->friendlist[i].status == FRIEND_ONLINE) { /* friend is online. */

0 commit comments

Comments
 (0)