Skip to content

Commit

Permalink
fix: Undo unnecessary return of optional
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Jan 13, 2022
1 parent 62f5d70 commit f39caf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Runtime/Scripts/PrimitiveCreateContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ class PrimitiveCreateContext : PrimitiveCreateContextBase {

Profiler.EndSample();

Primitive? p = new Primitive(msh, materials);
return p;
return new Primitive(msh,materials);
}

void Dispose() {
Expand Down
3 changes: 1 addition & 2 deletions Runtime/Scripts/PrimitiveDracoCreateContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ public void StartDecode(NativeSlice<byte> data, int weightsAttributeId, int join
// Profiler.EndSample();
#endif

Primitive ?p = new Primitive(mesh,materials);
return p;
return new Primitive(mesh,materials);
}
}
}
Expand Down

0 comments on commit f39caf2

Please sign in to comment.