Skip to content

Use property/event expression body style wherever possible

Mateusz Brawański requested to merge github/fork/uwx/patch-106 into master

Created by: uwx

Summary

Switches from statement body to expression body for property get/set and event add/remove wherever possible in the main project.

Details

According to Emzi, this was previously not used due to a bug in VS. It's been two years since then, so I think that might not apply anymore.

Changes proposed

  • Fix body style in DiscordClient, DiscordShardedClient, DiscordMember, TransportActivity, WebSocketClient2 and WebSocketClient (every instance of statement body style that can be expression body in the main DSharpPlus project)

Notes

This conversion was performed by a robot.

Merge request reports

Loading