1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Remove double negation

This commit is contained in:
TheWildTree 2020-01-30 21:45:42 +01:00
parent c38dc81535
commit caf76511a7

View File

@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Profile.Header
tryAddInfo(FontAwesome.Solid.Link, websiteWithoutProtocol, user.Website);
// Hide the container to prevent adding unnecessary padding if it has no children other than the NewLineContainer
if (!bottomLinkContainer.Children.Any(child => !(child is NewLineContainer)))
if (bottomLinkContainer.Children.All(child => child is NewLineContainer))
bottomLinkContainer.Hide();
else
// this is needed if user gets changed without the whole header being reloaded