aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteAssetData.cs
diff options
context:
space:
mode:
authorAlexRa2010-04-29 12:42:52 +0300
committerAlexRa2010-05-19 21:49:22 +0300
commitccee95552f07aeab003acf8dc8f5422209e41e7d (patch)
treecb3ae5850dc938dc0535906467637cd4c907e8f7 /OpenSim/Data/SQLite/SQLiteAssetData.cs
parentPrebuild: added *.migrations as resources to MSSQL, SQLiteLegacy (just in case) (diff)
downloadopensim-SC_OLD-ccee95552f07aeab003acf8dc8f5422209e41e7d.zip
opensim-SC_OLD-ccee95552f07aeab003acf8dc8f5422209e41e7d.tar.gz
opensim-SC_OLD-ccee95552f07aeab003acf8dc8f5422209e41e7d.tar.bz2
opensim-SC_OLD-ccee95552f07aeab003acf8dc8f5422209e41e7d.tar.xz
A bit of harmless refactoring in SQLiteAssetData.cs
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteAssetData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteAssetData.cs13
1 files changed, 3 insertions, 10 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs
index 7081f99..0fc1f25 100644
--- a/OpenSim/Data/SQLite/SQLiteAssetData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs
@@ -194,16 +194,9 @@ namespace OpenSim.Data.SQLite
194 cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString())); 194 cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString()));
195 using (IDataReader reader = cmd.ExecuteReader()) 195 using (IDataReader reader = cmd.ExecuteReader())
196 { 196 {
197 if (reader.Read()) 197 bool ok = reader.Read();
198 { 198 reader.Close();
199 reader.Close(); 199 return ok;
200 return true;
201 }
202 else
203 {
204 reader.Close();
205 return false;
206 }
207 } 200 }
208 } 201 }
209 } 202 }