Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Mar 24, 2024
1 parent 20a6d50 commit 7dd0eee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/fabricmc/tinyremapper/TinyUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ private static void read(BufferedReader reader, String fromNs, String toNs, Mapp
}

private static MappingVisitor createAdapter(String fromNs, String toNs, MappingAcceptor out) throws IOException {
return new MappingSourceNsSwitch( // Ensure fromNs is on source and toNs is on destination side
new MappingDstNsReorder( // Remove all dst namespaces we're not interested in
// Ensure fromNs is on source and toNs is on destination side
return new MappingSourceNsSwitch(
// Remove all dst namespaces we're not interested in
new MappingDstNsReorder(
new FlatAsRegularMappingVisitor(new MappingAdapter(out)),
toNs),
fromNs);
Expand Down

0 comments on commit 7dd0eee

Please sign in to comment.