Skip to content

Commit

Permalink
in most cases the data is already set and with this if check we can s…
Browse files Browse the repository at this point in the history
…kip a dictionary lookup
  • Loading branch information
nostek committed Nov 6, 2022
1 parent f77fa50 commit a75f13e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/NodePort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public Type ValueType {
return valueType;
}
set {
if (valueType == value) return;
valueType = value;
if (value != null) _typeQualifiedName = NodeDataCache.GetTypeQualifiedName(value);
}
Expand Down

0 comments on commit a75f13e

Please sign in to comment.