Skip to content

Commit a3c842c

Browse files
committed
is_admin: no coerce
1 parent 6bf4b6a commit a3c842c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

+stdlib/+sys/is_admin.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
return
1414
end
1515

16-
r = string(strip(r));
17-
1816
if ispc()
19-
y = r == "True";
17+
y = startsWith(r, 'True');
2018
else
21-
y = r == "0";
19+
y = startsWith(r, '0');
2220
end
2321

2422
end

0 commit comments

Comments
 (0)