From a23d64dec1cbf88abc3c7e84664a683dee534e4a Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 10 Jun 2009 04:28:56 +0000 Subject: Formatting cleanup. --- .../CreateCommsManager/CreateCommsManagerPlugin.cs | 4 ++-- OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs | 14 ++++++-------- .../Rest/Inventory/RestInventoryServices.cs | 6 +++--- 3 files changed, 11 insertions(+), 13 deletions(-) (limited to 'OpenSim/ApplicationPlugins') diff --git a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs index d2cb788..d56a9d9 100644 --- a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs +++ b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs @@ -181,7 +181,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler()); m_httpServer.AddStreamHandler(new OpenSim.XSimStatusHandler(m_openSim)); - if (m_openSim.userStatsURI != String.Empty ) + if (m_openSim.userStatsURI != String.Empty) m_httpServer.AddStreamHandler(new OpenSim.UXSimStatusHandler(m_openSim)); } @@ -213,7 +213,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler()); m_httpServer.AddStreamHandler(new OpenSim.XSimStatusHandler(m_openSim)); - if (m_openSim.userStatsURI != String.Empty ) + if (m_openSim.userStatsURI != String.Empty) m_httpServer.AddStreamHandler(new OpenSim.UXSimStatusHandler(m_openSim)); } diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs index 6f41c03..13f6426 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs @@ -392,9 +392,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory // on anything other than a URI token boundary. Otherwise we // may match on URL's that were not intended for this handler. - return ( path.Length == key.Length || - path.Substring(key.Length,1) == Rest.UrlPathSeparator); - + return (path.Length == key.Length || + path.Substring(key.Length, 1) == Rest.UrlPathSeparator); } } @@ -416,9 +415,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory // on anything other than a URI token boundary. Otherwise we // may match on URL's that were not intended for this handler. - return ( path.Length == key.Length || - path.Substring(key.Length,1) == Rest.UrlPathSeparator); - + return (path.Length == key.Length || + path.Substring(key.Length, 1) == Rest.UrlPathSeparator); } } } @@ -465,8 +463,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory try { - handled = ( FindPathHandler(request, response) || - FindStreamHandler(request, response) ); + handled = (FindPathHandler(request, response) || + FindStreamHandler(request, response)); } catch (Exception e) { diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs index 7798ebd..695784b 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs @@ -740,7 +740,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory // Scan the set of folders in the entity collection for an // entry that matches the context folder. It is assumed that - // the only reliable indicator of this is a zero UUID ( using + // the only reliable indicator of this is a zero UUID (using // implicit context), or the parent's UUID matches that of the // URI designated node (explicit context). We don't allow // ambiguity in this case because this is POST and we are @@ -1621,7 +1621,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory foreach (InventoryFolderBase parent in ic.rdata.folders) { - if ( parent.ID == result.ParentID ) + if (parent.ID == result.ParentID) { found = true; break; @@ -2002,7 +2002,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory foreach (InventoryFolderBase parent in ic.rdata.folders) { - if ( parent.ID == ic.Item.Folder ) + if (parent.ID == ic.Item.Folder) { found = true; break; -- cgit v1.1