Small formatting cleanup, before chi11ken notices. Me bad.

This commit is contained in:
Homer Horwitz
2008-09-19 21:32:41 +00:00
parent 6dd2841ed8
commit 025441d722
3 changed files with 39 additions and 20 deletions

View File

@@ -107,19 +107,23 @@ namespace OpenSim.Data.SQLite
/// </summary>
public void Dispose()
{
if(conn != null) {
if (conn != null)
{
conn.Close();
conn = null;
}
if(invItemsDa != null) {
if (invItemsDa != null)
{
invItemsDa.Dispose();
invItemsDa = null;
}
if(invFoldersDa != null) {
if (invFoldersDa != null)
{
invFoldersDa.Dispose();
invFoldersDa = null;
}
if(ds != null) {
if (ds != null)
{
ds.Dispose();
ds = null;
}
@@ -500,7 +504,8 @@ namespace OpenSim.Data.SQLite
// Current folder already has a sibling - append to sibling list
hashtable[curFolder.ParentID].Add(curFolder);
}
else {
else
{
List<InventoryFolderBase> siblingList = new List<InventoryFolderBase>();
siblingList.Add(curFolder);
// Current folder has no known (yet) siblings