mirror of
https://github.com/matrix-construct/construct
synced 2024-10-02 13:48:53 +02:00
ircd::db: Minor cleanup.
This commit is contained in:
parent
1a35514653
commit
4077307ab5
1 changed files with 2 additions and 4 deletions
|
@ -769,8 +769,7 @@ ircd::db::database::prefix_transform::Transform(const Slice &key)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
assert(bool(user.get));
|
assert(bool(user.get));
|
||||||
const string_view s{slice(key)};
|
return slice(user.get(slice(key)));
|
||||||
return slice(user.get(s));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
@ -785,8 +784,7 @@ ircd::db::database::prefix_transform::InDomain(const Slice &key)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
assert(bool(user.has));
|
assert(bool(user.has));
|
||||||
const string_view s{slice(key)};
|
return user.has(slice(key));
|
||||||
return user.has(s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue