Skip to content

Commit

Permalink
refactor: remove unnecessary exit message.
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-cskn committed Mar 29, 2024
1 parent c09203a commit 4dc9788
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/builtin/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* exit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: facetint <facetint@student.42.fr> +#+ +:+ +#+ */
/* By: hamza <hamza@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/03 13:04:14 by facetint #+# #+# */
/* Updated: 2024/03/28 17:22:33 by facetint ### ########.fr */
/* Updated: 2024/03/30 02:16:28 by hamza ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -38,7 +38,6 @@ void builtin_exit(t_command *cmd)
exit_status = 0;
if (!(cmd->args[1]))
{
ft_putstr_fd("exit\n", 2);
abort_function();
exit(EXIT_SUCCESS);
}
Expand Down

0 comments on commit 4dc9788

Please sign in to comment.