From 014521362fd0a57764a5f022cab2201eebf5a5f7 Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 15 Aug 2012 14:27:01 -0700 Subject: [PATCH] Fix lint warning --- src/repository/api/ArcanistMercurialAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repository/api/ArcanistMercurialAPI.php b/src/repository/api/ArcanistMercurialAPI.php index cd22344b..59915aec 100644 --- a/src/repository/api/ArcanistMercurialAPI.php +++ b/src/repository/api/ArcanistMercurialAPI.php @@ -415,11 +415,11 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI { } public function supportsAmend() { - list ($err, $stdout) = $this->execManualLocal('help commit'); + list($err, $stdout) = $this->execManualLocal('help commit'); if ($err) { return false; } else { - return (strstr($stdout, "amend") !== false); + return (strpos($stdout, "amend") !== false); } } -- 2.43.0