Skip to content

Commit 17b1a11

Browse files
dkorpeldlang-bot
authored andcommitted
Remove redundant assumeUnique in std.path
1 parent 3c74c2b commit 17b1a11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

std/path.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,6 @@ immutable(C)[] buildNormalizedPath(C)(const(C[])[] paths...)
17581758
if (isSomeChar!C)
17591759
{
17601760
import std.array : array;
1761-
import std.exception : assumeUnique;
17621761

17631762
const(C)[] chained;
17641763
foreach (path; paths)
@@ -1770,7 +1769,7 @@ if (isSomeChar!C)
17701769
}
17711770
auto result = asNormalizedPath(chained);
17721771
// .array returns a copy, so it is unique
1773-
return () @trusted { return assumeUnique(result.array); } ();
1772+
return result.array;
17741773
}
17751774

17761775
///

0 commit comments

Comments
 (0)