Skip to content

Commit 1b760eb

Browse files
committed
Fix identation and remove format changes unrelated.
1 parent a18a874 commit 1b760eb

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void CustomAttributeDelete()
202202

203203
Type preUpdateTy = assm.GetType("System.Reflection.Metadata.ApplyUpdate.Test.ClassWithCustomAttributeDelete");
204204
Assert.NotNull(preUpdateTy);
205-
205+
206206
// before the update the type has a MyDeleteAttribute on it
207207
Attribute[] cattrs = Attribute.GetCustomAttributes(preUpdateTy, attrType);
208208
Assert.NotNull(cattrs);
@@ -354,7 +354,7 @@ public static void TestAddInstanceField()
354354

355355
Assert.Equal (6, x2.GetIntArrayLength());
356356
Assert.Equal (7, x2.GetIntArrayElt (3));
357-
357+
358358
// now check that reflection can get/set the new fields
359359
var fi = x2.GetType().GetField("NewStructField");
360360

@@ -424,7 +424,7 @@ public static void TestAddInstanceField()
424424
// token is in that range. If more code is added, revise this test.
425425

426426
Assert.True ((addedEventToken & 0x00ffffff) < 4);
427-
427+
428428
fi = x2.GetType().GetField("AddedDateTime");
429429
Assert.NotNull(fi);
430430
var dt = DateTime.Now;
@@ -814,7 +814,7 @@ public static void TestReflectionAddNewMethod()
814814
Assert.NotNull(parm.ParameterType);
815815
Assert.Equal(parmPos, parm.Position);
816816
Assert.NotNull(parm.Name);
817-
817+
818818
var cas = parm.GetCustomAttributes(false);
819819
foreach (var ca in cas) {
820820
Assert.NotNull (ca);
@@ -867,7 +867,7 @@ public static void TestGenericAddStaticField()
867867
var y = new System.Reflection.Metadata.ApplyUpdate.Test.GenericAddStaticField<double>();
868868

869869
Assert.Equal (0.0, y.GetField());
870-
870+
871871
ApplyUpdateUtil.ApplyUpdate(assm);
872872

873873
// there are two updates - the first adds the fields, the second one updates the
@@ -898,7 +898,7 @@ public static void TestGenericAddInstanceField()
898898
var y = new System.Reflection.Metadata.ApplyUpdate.Test.GenericAddInstanceField<double>(45.0);
899899

900900
Assert.Equal (0.0, y.GetIt());
901-
901+
902902
ApplyUpdateUtil.ApplyUpdate(assm);
903903

904904
var fi = x.GetType().GetField("myAddedField", BindingFlags.Instance | BindingFlags.NonPublic);
@@ -950,7 +950,7 @@ public static void TestNewMethodThrows()
950950
Assert.Equal("abcd", x.ExistingMethod("abcd"));
951951

952952
ApplyUpdateUtil.ApplyUpdate(assm);
953-
953+
954954
InvalidOperationException exn = Assert.Throws<InvalidOperationException>(() => x.ExistingMethod("spqr"));
955955

956956
Assert.Equal("spqr", exn.Message);

src/mono/mono/component/hot_reload.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,7 @@ delta_info_initialize_mutants (const MonoImage *base, const BaselineInfo *base_i
924924
g_assert (prev_table != NULL);
925925

926926
MonoTableInfo *tbl = &delta->mutants [i];
927-
if (delta->delta_image->tables [i].row_size != 0 || prev_table->rows_ == 0)
928-
{
927+
if (delta->delta_image->tables [i].row_size != 0 || prev_table->rows_ == 0) {
929928
tbl->row_size = delta->delta_image->tables [i].row_size;
930929
tbl->size_bitfield = delta->delta_image->tables [i].size_bitfield;
931930
} else {

0 commit comments

Comments
 (0)