0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-03 01:09:05 +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 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);
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////