remove redundant call to checkSpecialRemoteProblems

This commit is contained in:
Joey Hess 2024-05-27 11:57:36 -04:00
parent 5a48f7b34e
commit bb7b026b18
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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."