Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
replace assert($x is Y) with $x as Y
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Dec 11, 2020
1 parent 0198c51 commit 2c92708
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Writer.hack
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ final class Writer {

$map = \array_map(
($sub_map): mixed ==> {
assert($sub_map is KeyedContainer<_, _>);
return \array_map(
$path ==> $this->relativePath($path as string),
$sub_map,
$sub_map as KeyedContainer<_, _>,
);
},
$map,
Expand Down

0 comments on commit 2c92708

Please sign in to comment.