Skip to content

Commit d59e41e

Browse files
musmsimonster
authored andcommitted
update to use ! for boolean not instead of bitwise (#102)
1 parent e23fafe commit d59e41e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mxbase.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function matlab_home_path()
1111
if isdir(default_dir)
1212
dirs = readdir(default_dir)
1313
filter!(app -> ismatch(r"^MATLAB_R[0-9]+[ab]\.app$", app), dirs)
14-
if ~isempty(dirs)
14+
if !isempty(dirs)
1515
matlab_home = joinpath(default_dir, maximum(dirs))
1616
end
1717
end
@@ -20,7 +20,7 @@ function matlab_home_path()
2020
if isdir(default_dir)
2121
dirs = readdir(default_dir)
2222
filter!(dir -> ismatch(r"^R[0-9]+[ab]$", dir), dirs)
23-
if ~isempty(dirs)
23+
if !isempty(dirs)
2424
matlab_home = joinpath(default_dir, maximum(dirs))
2525
end
2626
end

0 commit comments

Comments
 (0)