c8d32dbremove unnecessary else in dispatch function
1 file changed, +2, -3
author
mogiya <git@mogiya.dev> on 03-04-2026 02:57 UTC+1
committer
mogiya <git@mogiya.dev> on 03-04-2026 02:57 UTC+1
parentafcc422
+2, -3
    @@ -6,7 +6,7 @@
 6 6 /*   By: mleitao <mleitao@student.42.fr>            +#+  +:+       +#+        */
 7 7 /*                                                +#+#+#+#+#+   +#+           */
 8 8 /*   Created: 2026/03/30 01:31:08 by mleitao           #+#    #+#             */
 9  -/*   Updated: 2026/04/03 01:57:13 by mleitao          ###   ########.fr       */
   9+/*   Updated: 2026/04/03 02:56:55 by mleitao          ###   ########.fr       */
1010 /*                                                                            */
1111 /* ************************************************************************** */
1212 
    @@ -42,8 +42,7 @@ static int	dispatch(t_data *d)
4242 		return (print_xx(d, va_arg(d->args, unsigned int), 1));
4343 	else if (spec == 'p')
4444 		return (print_p(d, va_arg(d->args, void *)));
45  -	else
46  -		return (-1);
  45+	return (-1);
4746 }
4847 
4948 static int	inner_logic(t_data *d, char *next)