Return nullable on XivChatType.GetDetails (#2143)

This commit is contained in:
Haselnussbomber 2024-12-17 16:56:55 +01:00 committed by GitHub
parent 4dedaac50e
commit 3ccd93aaf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ public static class XivChatTypeExtensions
/// </summary>
/// <param name="chatType">The chat type.</param>
/// <returns>The info attribute.</returns>
public static XivChatTypeInfoAttribute GetDetails(this XivChatType chatType)
public static XivChatTypeInfoAttribute? GetDetails(this XivChatType chatType)
{
return chatType.GetAttribute<XivChatTypeInfoAttribute>();
}