Skip to content

Commit

Permalink
maint: Use semicolon for "return" statements.
Browse files Browse the repository at this point in the history
* rat.m, print_usage.m, iqr.m: Use semicolon for "return" statements.
  • Loading branch information
Rik committed Oct 25, 2024
1 parent c245fab commit e0652b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/general/rat.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
finish = repmat (")", nn, 1);
n = [start, realstr, mid, imagstr, finish];
endif
return
return;
endif

y = x(:);
Expand Down
2 changes: 1 addition & 1 deletion scripts/help/print_usage.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions scripts/statistics/iqr.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
sz(dim) = 1;
z = NaN (sz);
endif
return
return;
endif

else
Expand All @@ -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").
Expand Down Expand Up @@ -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"))
Expand All @@ -181,7 +181,7 @@
if (empty_x)
## Handle empty x with "all" dim input.
z = NaN;
return
return;
endif

else
Expand Down

0 comments on commit e0652b5

Please sign in to comment.