Skip to content

Commit 8824289

Browse files
committed
speed lint
1 parent 950d117 commit 8824289

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

+stdlib/proximate_to.m

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
%% PROXIMATE_TO relative path to base
22
%
33
%%% Inputs
4-
% * base {mustBeTextScalar}
5-
% * other {mustBeTextScalar}
4+
% * base: directory to which the other path should be relative
5+
% * other: path to be made relative
66
%%% Outputs
7-
% * rel {mustBeTextScalar}
7+
% * rel: relative path from base to other
88

99
function rel = proximate_to(base, other)
10-
arguments
11-
base {mustBeTextScalar}
12-
other {mustBeTextScalar}
13-
end
1410

1511
rel = stdlib.relative_to(base, other);
1612
if stdlib.strempty(rel)

test/TestExists.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
{pwd(), true}, ...
66
{mfilename("fullpath") + ".m", true}, ...
77
{fileparts(mfilename("fullpath")) + "/../Readme.md", true}, ...
8-
{tempname(), false}
8+
{tempname(), false}, ...
9+
{'', false}, ...}
10+
{"", false}
911
}
1012
% on CI matlabroot can be writable!
1113
isr_fun = {@stdlib.is_readable, @stdlib.java.is_readable, @stdlib.native.is_readable, @stdlib.native.is_readable_legacy}

0 commit comments

Comments
 (0)