A bit of harmless refactoring in SQLiteAssetData.cs

soprefactor
AlexRa 2010-04-29 12:42:52 +03:00
parent d71c483bf0
commit ccee95552f
1 changed files with 3 additions and 10 deletions

View File

@ -194,16 +194,9 @@ namespace OpenSim.Data.SQLite
cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString()));
using (IDataReader reader = cmd.ExecuteReader())
{
if (reader.Read())
{
bool ok = reader.Read();
reader.Close();
return true;
}
else
{
reader.Close();
return false;
}
return ok;
}
}
}