Skip to content

Commit

Permalink
Minor code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
zivmaor committed Nov 25, 2024
1 parent abcad71 commit 8e3a187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UndertaleModTool/Converters/CodeViewConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ protected override Predicate<object> CreateFilter()
return (obj) =>
{
if (obj is UndertaleCode code &&
code.ParentEntry != null &&
code.ParentEntry is not null &&
Settings.Instance.HideChildCodeEntries)
return false;
return baseFilter(obj);
Expand Down
2 changes: 1 addition & 1 deletion UndertaleModTool/Converters/FilteredViewConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected virtual Predicate<object> CreateFilter()

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
if (value is null)
return null;
ICollectionView filteredView = CollectionViewSource.GetDefaultView(value);
filteredView.Filter = CreateFilter();
Expand Down

0 comments on commit 8e3a187

Please sign in to comment.