Skip to content

Commit b98d641

Browse files
committed
Fix some whitespace
1 parent 34eb9cc commit b98d641

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

‎src/runtime/classbase.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static IntPtr tp_richcompare(IntPtr ob, IntPtr other, int op)
158158
case Runtime.Py_LE:
159159
case Runtime.Py_GT:
160160
case Runtime.Py_GE:
161-
co1 = GetManagedObject(ob) as CLRObject;
161+
co1 = GetManagedObject(ob) as CLRObject;
162162
co2 = GetManagedObject(other) as CLRObject;
163163
if (co1 == null || co2 == null)
164164
{

‎src/runtime/loader.cs‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ public static int Initialize(IntPtr data, int size)
1919
Marshal.Copy(data, buf, 0, size);
2020
var dllPath = Encoding.UTF8.GetString(buf);
2121

22-
if (!string.IsNullOrEmpty(dllPath)) {
22+
if (!string.IsNullOrEmpty(dllPath))
23+
{
2324
PythonDLL = dllPath;
24-
}
25-
else {
26-
PythonDLL = null;
27-
}
25+
}
26+
else
27+
{
28+
PythonDLL = null;
29+
}
2830

2931
gs = PyGILState_Ensure();
3032

@@ -39,8 +41,10 @@ public static int Initialize(IntPtr data, int size)
3941
);
4042
return 1;
4143
}
42-
finally {
43-
if (gs != IntPtr.Zero) {
44+
finally
45+
{
46+
if (gs != IntPtr.Zero)
47+
{
4448
PyGILState_Release(gs);
4549
}
4650
}
@@ -62,8 +66,10 @@ public static int Shutdown(IntPtr data, int size)
6266
);
6367
return 1;
6468
}
65-
finally {
66-
if (gs != IntPtr.Zero) {
69+
finally
70+
{
71+
if (gs != IntPtr.Zero)
72+
{
6773
PyGILState_Release(gs);
6874
}
6975
}

0 commit comments

Comments
 (0)