diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /OpenSim/Server/Handlers/Asset/AssetServerConnector.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
Diffstat (limited to 'OpenSim/Server/Handlers/Asset/AssetServerConnector.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Asset/AssetServerConnector.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs b/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs index ab81dd6..bad3ea2 100644 --- a/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs +++ b/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs | |||
@@ -151,27 +151,27 @@ namespace OpenSim.Server.Handlers.Asset | |||
151 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); | 151 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); |
152 | return; | 152 | return; |
153 | } | 153 | } |
154 | 154 | ||
155 | AssetBase asset = m_AssetService.Get(assetId.ToString()); | 155 | AssetBase asset = m_AssetService.Get(assetId.ToString()); |
156 | if (asset == null) | 156 | if (asset == null) |
157 | { | 157 | { |
158 | MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); | 158 | MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); |
159 | return; | 159 | return; |
160 | } | 160 | } |
161 | 161 | ||
162 | string fileName = rawAssetId; | 162 | string fileName = rawAssetId; |
163 | 163 | ||
164 | if (!ConsoleUtil.CheckFileDoesNotExist(MainConsole.Instance, fileName)) | 164 | if (!ConsoleUtil.CheckFileDoesNotExist(MainConsole.Instance, fileName)) |
165 | return; | 165 | return; |
166 | 166 | ||
167 | using (FileStream fs = new FileStream(fileName, FileMode.CreateNew)) | 167 | using (FileStream fs = new FileStream(fileName, FileMode.CreateNew)) |
168 | { | 168 | { |
169 | using (BinaryWriter bw = new BinaryWriter(fs)) | 169 | using (BinaryWriter bw = new BinaryWriter(fs)) |
170 | { | 170 | { |
171 | bw.Write(asset.Data); | 171 | bw.Write(asset.Data); |
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName); | 175 | MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName); |
176 | } | 176 | } |
177 | 177 | ||