Skip to content

Commit b7d1666

Browse files
committed
remove redundancy
1 parent e12d272 commit b7d1666

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,15 +708,13 @@ private bool CompareValues(object value, RegistryView registryView, RegistryStat
708708
}
709709

710710
if (activeRegistryStateElement != null) {
711+
// get value before
711712
comparableRegistryStateElementValue = activeRegistryStateElement.Value;
712713

713714
// if value existed before
714715
if (comparableRegistryStateElementValue != null) {
715716
// value kind before also matters
716717
if (valueKind == activeRegistryStateElement.ValueKind) {
717-
// get value before
718-
comparableRegistryStateElementValue = activeRegistryStateElement.Value;
719-
720718
// check value matches
721719
if (comparableValue.Equals(comparableRegistryStateElementValue, StringComparison.Ordinal)) {
722720
return true;

0 commit comments

Comments
 (0)