Skip to content

Commit 97942c0

Browse files
committed
remove unneeded check'
1 parent 3c94ca3 commit 97942c0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

+stdlib/+sys/set_modtime.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
function [ok, cmd] = set_modtime(file, dt)
22

3-
ok = false;
4-
53
tiso = string(datetime(dt), 'yyyy-MM-dd HH:mm:ss');
64

75
if ispc()
@@ -13,9 +11,7 @@
1311
end
1412
% https://man7.org/linux/man-pages/man1/touch.1.html
1513

16-
if isfile(file)
17-
[s, ~] = system(cmd);
18-
ok = s == 0;
19-
end
14+
[s, ~] = system(cmd);
15+
ok = s == 0;
2016

2117
end

0 commit comments

Comments
 (0)