Skip to content

Commit

Permalink
[tracker] Use auto-props instead of fields+props in TrackerServer
Browse files Browse the repository at this point in the history
Also add a lot of code comments to explain the properties/methods.
  • Loading branch information
alanmcgovern committed Aug 21, 2019
1 parent 1ac4c0d commit 2ee0e41
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 157 deletions.
2 changes: 1 addition & 1 deletion src/MonoTorrent/MonoTorrent.Tracker/InfoHashTrackable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public InfoHashTrackable(string name, InfoHash infoHash)
Check.InfoHash(infoHash);

if (string.IsNullOrEmpty(name))
throw new ArgumentNullException("name cannot be null or empty", "name");
throw new ArgumentNullException (nameof (name), $"{nameof (name)} cannot be null or empty");

InfoHash = infoHash;
Name = name;
Expand Down
Loading

0 comments on commit 2ee0e41

Please sign in to comment.