From a9aece4dfeb9857f84090115db34f4dc4971d671 Mon Sep 17 00:00:00 2001
From: "leo.pellandi" <leo.pellandini@etu.hesge.ch>
Date: Fri, 4 Feb 2022 21:45:16 +0100
Subject: [PATCH] Update is_full.c

---
 is_full.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/is_full.c b/is_full.c
index a269855..24914bc 100644
--- a/is_full.c
+++ b/is_full.c
@@ -1,7 +1,3 @@
 bool is_full(queue q){
-	bool ret = false;
-    if(q.tail == q.capacity){
-        ret = true;
-    }
-    return ret;
+    return (q.tail >= q.capacity);
 }
-- 
GitLab