A bit of harmless refactoring in SQLiteAssetData.cs
parent
d71c483bf0
commit
ccee95552f
|
@ -194,16 +194,9 @@ namespace OpenSim.Data.SQLite
|
||||||
cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString()));
|
cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString()));
|
||||||
using (IDataReader reader = cmd.ExecuteReader())
|
using (IDataReader reader = cmd.ExecuteReader())
|
||||||
{
|
{
|
||||||
if (reader.Read())
|
bool ok = reader.Read();
|
||||||
{
|
|
||||||
reader.Close();
|
reader.Close();
|
||||||
return true;
|
return ok;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
reader.Close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue