From fc0e239bdf7ae4aeed5df9273532c0985457d491 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Fri, 25 Jan 2019 14:25:15 +0000 Subject: [PATCH] No point calling find_by_uuid now we don't use the result. --- src/db/models/organization.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index c755a061..498e64ea 100644 --- a/src/db/models/organization.rs +++ b/src/db/models/organization.rs @@ -293,8 +293,6 @@ impl UserOrganization { } pub fn to_json_collection_user_details(&self, read_only: bool, conn: &DbConn) -> Value { - let user = User::find_by_uuid(&self.user_uuid, conn).unwrap(); - json!({ "Id": self.uuid, "ReadOnly": read_only