From a23d64dec1cbf88abc3c7e84664a683dee534e4a Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 10 Jun 2009 04:28:56 +0000 Subject: Formatting cleanup. --- OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs') 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) { -- cgit v1.1