0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 00:08:22 +02:00

ircd::db: Minor cleanup.

This commit is contained in:
Jason Volk 2017-09-23 00:28:34 -07:00
parent 1a35514653
commit 4077307ab5

View file

@ -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));
}
///////////////////////////////////////////////////////////////////////////////