diff options
author | AlexRa | 2010-04-29 12:42:52 +0300 |
---|---|---|
committer | AlexRa | 2010-05-19 21:49:22 +0300 |
commit | ccee95552f07aeab003acf8dc8f5422209e41e7d (patch) | |
tree | cb3ae5850dc938dc0535906467637cd4c907e8f7 /OpenSim/Data/SQLite | |
parent | Prebuild: added *.migrations as resources to MSSQL, SQLiteLegacy (just in case) (diff) | |
download | opensim-SC-ccee95552f07aeab003acf8dc8f5422209e41e7d.zip opensim-SC-ccee95552f07aeab003acf8dc8f5422209e41e7d.tar.gz opensim-SC-ccee95552f07aeab003acf8dc8f5422209e41e7d.tar.bz2 opensim-SC-ccee95552f07aeab003acf8dc8f5422209e41e7d.tar.xz |
A bit of harmless refactoring in SQLiteAssetData.cs
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteAssetData.cs | 13 |
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 | } |