Skip to content

Commit 5073232

Browse files
committed
Eliminate duplicate shims
1 parent 636859c commit 5073232

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shims/cvx_mosek.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
fs = cvx___.fs;
1313
mext = cvx___.mext;
14+
mlen = length(mext);
1415

1516
fbase = 'mosekopt';
1617
fname = [ fbase, '.', mext ];
@@ -29,6 +30,7 @@
2930
if cvx___.cs, scmp = @strcmp; else scmp = @strcmpi; end
3031
for k = 1 : length(fpaths)
3132
fpath = fpaths{k};
33+
if ~scmp(fpath(end-mlen+1:end), mext), continue; end
3234
if any( scmp( fpath, fpaths(1:k-1) ) ), continue; end
3335
if ~exist( fpath, 'file' ), continue; end
3436
tshim = oshim;

0 commit comments

Comments
 (0)