From 718ee7f7277834286f77c9574050c1b34b8ef498 Mon Sep 17 00:00:00 2001 From: coderiaser Date: Mon, 17 Jun 2024 15:18:04 +0300 Subject: [PATCH] fix: loop: condition --- src/loop.ab | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/loop.ab b/src/loop.ab index 4a127a0..7d0a626 100644 --- a/src/loop.ab +++ b/src/loop.ab @@ -8,17 +8,6 @@ main { let file = "$1" let size = "$2" - if { - file == "" { - echo "loop "; - exit(0); - } - size == "" { - echo "loop "; - exit(0); - } - } - if { file == "-v" { let version = get_version(); @@ -30,6 +19,14 @@ main { echo "v{version}" exit(0); } + file == "" { + echo "loop "; + exit(0); + } + size == "" { + echo "loop "; + exit(0); + } } let missing = get_missing_dependency();