Skip to content

Commit

Permalink
fix: undo invalid refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorus committed May 10, 2024
1 parent 19b1d24 commit f38229b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Yafc/Windows/ProjectPageSettingsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public static void LoadProjectPageFromClipboard() {
deflateStream.CopyTo(ms);
byte[] bytes = ms.GetBuffer();
int index = 0;
if (DataUtils.ReadLine(bytes, ref index) is not "YAFC" or not "ProjectPage") {
if (DataUtils.ReadLine(bytes, ref index) != "YAFC" || DataUtils.ReadLine(bytes, ref index) != "ProjectPage") {
throw new InvalidDataException();
}

Expand Down

0 comments on commit f38229b

Please sign in to comment.