hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit d29b206534570cd9108c9a8f60c30e345fec39ce
parent 7443677e5bf55989592a341eb9282ac348df9153
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri,  8 Sep 2023 00:22:34 -0400

getopt: remove unnecessary null check

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mgetopt/getopts.ha | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/getopt/getopts.ha b/getopt/getopts.ha @@ -174,7 +174,6 @@ export fn tryparse(args: []str, help: help...) (command | error) = { // Frees resources associated with the return value of [[parse]]. export fn finish(cmd: *command) void = { - if (cmd == null) return; free(cmd.opts); match (cmd.subcmd) { case void => void;