From bb7b026b186d3934feed9f6e74031f7d7b83a772 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 27 May 2024 11:57:36 -0400 Subject: [PATCH] remove redundant call to checkSpecialRemoteProblems --- CmdLine/GitRemoteAnnex.hs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CmdLine/GitRemoteAnnex.hs b/CmdLine/GitRemoteAnnex.hs index f645343d37..c9653926cb 100644 --- a/CmdLine/GitRemoteAnnex.hs +++ b/CmdLine/GitRemoteAnnex.hs @@ -544,11 +544,7 @@ withSpecialRemote cfg@(SpecialRemoteConfig {}) sab a = case specialRemoteName cf setConfig (remoteConfig c' "url") (specialRemoteUrl cfg) remotesChanged getEnabledSpecialRemoteByName remotename >>= \case - Just rmt -> case checkSpecialRemoteProblems rmt of - Nothing -> return rmt - Just problem -> do - cleanupremote remotename - giveup problem + Just rmt -> return rmt Nothing -> do cleanupremote remotename giveup "Unable to find special remote after setup."