mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Clean up some core functionality
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SabreTools.Logging;
|
||||
|
||||
namespace SabreTools.Core.Tools
|
||||
@@ -87,7 +86,7 @@ namespace SabreTools.Core.Tools
|
||||
|
||||
// Try to get the mapping attribute
|
||||
MappingAttribute? attr = AttributeHelper<T>.GetAttribute(value);
|
||||
if (attr?.Mappings == null || !attr.Mappings.Any())
|
||||
if (attr?.Mappings == null || attr.Mappings.Length == 0)
|
||||
continue;
|
||||
|
||||
// Loop through the mappings and add each
|
||||
@@ -170,7 +169,7 @@ namespace SabreTools.Core.Tools
|
||||
|
||||
// Try to get the mapping attribute
|
||||
MappingAttribute? attr = AttributeHelper<T>.GetAttribute(value);
|
||||
if (attr?.Mappings == null || !attr.Mappings.Any())
|
||||
if (attr?.Mappings == null || attr.Mappings.Length == 0)
|
||||
continue;
|
||||
|
||||
// Use either the first or second item in the list
|
||||
|
||||
Reference in New Issue
Block a user