Skip to content

Commit dc88c9d

Browse files
Update Source/NETworkManager.Profiles/ProfileManager.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c8d5cd5 commit dc88c9d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Source/NETworkManager.Profiles/ProfileManager.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,9 @@ public static void ChangeMasterPassword(ProfileFileInfo profileFileInfo, SecureS
428428

429429
List<GroupInfo> profiles;
430430

431-
if (IsXmlContent(decryptedBytes))
432-
profiles = DeserializeFromXmlByteArray(decryptedBytes);
433-
else
434-
profiles = DeserializeFromByteArray(decryptedBytes);
431+
profiles = IsXmlContent(decryptedBytes)
432+
? DeserializeFromXmlByteArray(decryptedBytes)
433+
: DeserializeFromByteArray(decryptedBytes);
435434

436435
// Save the encrypted file
437436
decryptedBytes = SerializeToByteArray(profiles);

0 commit comments

Comments
 (0)