From ccee95552f07aeab003acf8dc8f5422209e41e7d Mon Sep 17 00:00:00 2001 From: AlexRa Date: Thu, 29 Apr 2010 12:42:52 +0300 Subject: A bit of harmless refactoring in SQLiteAssetData.cs --- OpenSim/Data/SQLite/SQLiteAssetData.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'OpenSim/Data/SQLite') 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 cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString())); using (IDataReader reader = cmd.ExecuteReader()) { - if (reader.Read()) - { - reader.Close(); - return true; - } - else - { - reader.Close(); - return false; - } + bool ok = reader.Read(); + reader.Close(); + return ok; } } } -- cgit v1.1