mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Unreachable code removed
This commit is contained in:
parent
e149a97658
commit
6c8dd9e8fa
@ -109,11 +109,9 @@ func (c *RemoteCommand) Run(args []string) int {
|
||||
case !haveLocal && haveNonManaged:
|
||||
// Enable remote state management
|
||||
return c.enableRemoteState()
|
||||
|
||||
default:
|
||||
panic("unhandled case")
|
||||
}
|
||||
return 0
|
||||
|
||||
panic("unhandled case")
|
||||
}
|
||||
|
||||
// disableRemoteState is used to disable remote state management,
|
||||
|
@ -213,10 +213,9 @@ func (c *AtlasRemoteClient) DeleteState() error {
|
||||
return ErrInvalidAuth
|
||||
case http.StatusInternalServerError:
|
||||
return ErrRemoteInternal
|
||||
default:
|
||||
return fmt.Errorf("Unexpected HTTP response code %d", resp.StatusCode)
|
||||
}
|
||||
return nil
|
||||
|
||||
return fmt.Errorf("Unexpected HTTP response code %d", resp.StatusCode)
|
||||
}
|
||||
|
||||
func (c *AtlasRemoteClient) url() *url.URL {
|
||||
|
Loading…
Reference in New Issue
Block a user