Skip to content

Commit bfaf5ee

Browse files
==
authored andcommitted
[jacksondunstan#51] fix formatting and remove unnecessary variable initialization
1 parent 3b519ac commit bfaf5ee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Unity/Assets/NativeScript/Bindings.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static class ObjectStore
4040
public static void Init(int maxObjects)
4141
{
4242
ObjectStore.maxObjects = maxObjects;
43-
objectHandleCache = new Dictionary<object, int> (maxObjects);
43+
objectHandleCache = new Dictionary<object, int>(maxObjects);
4444
handles = new Stack<int> (maxObjects);
4545

4646
// Initialize the objects as all null plus room for the
@@ -93,8 +93,7 @@ public static int GetHandle(object obj)
9393

9494
lock (objects)
9595
{
96-
// A handle with a value of 0 is NULL
97-
int handle = 0;
96+
int handle;
9897

9998
// Get handle from object cache
10099
if (objectHandleCache.TryGetValue(obj, out handle))

0 commit comments

Comments
 (0)