mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
Using pattern matching for nulls where applicable, discarded unused lambda parameters, cleaned up some classes. Unignored ServerLog commands which was mistakenly ignored due to a .gitignore rule
This commit is contained in:
@@ -57,7 +57,7 @@ public class CommentGatheringTypeInspector : TypeInspectorSkeleton
|
||||
public IObjectDescriptor Read(object target)
|
||||
{
|
||||
var comment = baseDescriptor.GetCustomAttribute<CommentAttribute>();
|
||||
return comment != null
|
||||
return comment is not null
|
||||
? new CommentsObjectDescriptor(baseDescriptor.Read(target), comment.Comment)
|
||||
: baseDescriptor.Read(target);
|
||||
}
|
||||
|
Reference in New Issue
Block a user