diff --git a/src/parser.rs b/src/parser.rs
index c2c8652..e626544 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -638,7 +638,7 @@ impl Parser {
                     ));
                 }
                 arguments.push(self.parse_expression()?);
-                if self.expect(&[TokenType::Comma]).is_some() {
+                if self.expect(&[TokenType::Comma]).is_none() {
                     break;
                 }
             }