From e0652b59ce0672c6c4e8ab8c2d272c1b4bbe5cd6 Mon Sep 17 00:00:00 2001 From: Rik Date: Fri, 25 Oct 2024 15:08:06 -0700 Subject: [PATCH] maint: Use semicolon for "return" statements. * rat.m, print_usage.m, iqr.m: Use semicolon for "return" statements. --- scripts/general/rat.m | 2 +- scripts/help/print_usage.m | 2 +- scripts/statistics/iqr.m | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/general/rat.m b/scripts/general/rat.m index 7add4939e6..ad6f819523 100644 --- a/scripts/general/rat.m +++ b/scripts/general/rat.m @@ -128,7 +128,7 @@ finish = repmat (")", nn, 1); n = [start, realstr, mid, imagstr, finish]; endif - return + return; endif y = x(:); diff --git a/scripts/help/print_usage.m b/scripts/help/print_usage.m index aae832abb5..720818eef4 100644 --- a/scripts/help/print_usage.m +++ b/scripts/help/print_usage.m @@ -194,7 +194,7 @@ function print_usage (name) ## There is some Texinfo command in the deftypefn line ## outside the scope of this restricted function, ## so return with status set to failure. - return + return; endif ## Process any remaining @ signs. diff --git a/scripts/statistics/iqr.m b/scripts/statistics/iqr.m index cc20f371a3..a7a0018a0b 100644 --- a/scripts/statistics/iqr.m +++ b/scripts/statistics/iqr.m @@ -99,7 +99,7 @@ sz(dim) = 1; z = NaN (sz); endif - return + return; endif else @@ -114,7 +114,7 @@ ## Handle empty x with input vecdim. sz(dim(dim <= nd)) = 1; z = NaN (sz); - return + return; endif ## Detect trivial case of DIM being all dimensions (same as "all"). @@ -169,7 +169,7 @@ ## Handle empty x with scalar input dim. sz(dim(dim <= nd)) = 1; z = NaN (sz); - return + return; endif elseif (strcmp (lower (dim), "all")) @@ -181,7 +181,7 @@ if (empty_x) ## Handle empty x with "all" dim input. z = NaN; - return + return; endif else