From 21ed25019d7b657e8b48190a46391a41254dbae9 Mon Sep 17 00:00:00 2001 From: Michael Halstead Date: Thu, 10 Jan 2013 15:37:38 -0800 Subject: [PATCH] Prevent exceptions when adding repositories via conduit. Summary: Simple change to stop exceptions from being thrown based on the diff in D4146. Test Plan: arc call-conduit repository.create Reviewers: epriestley, btrahan Reviewed By: btrahan CC: vrana, aran, Korvin Maniphest Tasks: T2268 Differential Revision: https://secure.phabricator.com/D4342 --- .../repository/conduit/ConduitAPI_repository_create_Method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php b/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php index 97d939a8a9..1f9a168d65 100644 --- a/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php +++ b/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php @@ -123,7 +123,7 @@ final class ConduitAPI_repository_create_Method throw new ConduitException('ERR-DUPLICATE'); } - return $this->buildDictForRepository($repository); + return $repository->toDictionary(); }