diff options
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 | } |