mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 13:18:58 +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
|
||||
{
|
||||
assert(bool(user.get));
|
||||
const string_view s{slice(key)};
|
||||
return slice(user.get(s));
|
||||
return slice(user.get(slice(key)));
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -785,8 +784,7 @@ ircd::db::database::prefix_transform::InDomain(const Slice &key)
|
|||
const
|
||||
{
|
||||
assert(bool(user.has));
|
||||
const string_view s{slice(key)};
|
||||
return user.has(s);
|
||||
return user.has(slice(key));
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue