mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Remove Some Redundant Code
This commit is contained in:
parent
728f8d7ffe
commit
943f242e4e
@ -134,9 +134,8 @@ namespace NewHorizons
|
||||
var data = QueryBody(typeof(T), bodyName, jsonPath);
|
||||
if (data is T result) {
|
||||
return result;
|
||||
} else {
|
||||
return default(T);
|
||||
}
|
||||
return default;
|
||||
}
|
||||
|
||||
public object QuerySystem(Type outType, string jsonPath)
|
||||
@ -151,9 +150,8 @@ namespace NewHorizons
|
||||
var data = QuerySystem(typeof(T), jsonPath);
|
||||
if (data is T result) {
|
||||
return result;
|
||||
} else {
|
||||
return default(T);
|
||||
}
|
||||
return default;
|
||||
}
|
||||
|
||||
public GameObject SpawnObject(GameObject planet, Sector sector, string propToCopyPath, Vector3 position, Vector3 eulerAngles,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user