-
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
bugSomething isn't workingSomething isn't workingfeatureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersnmrsChanges to nmrsChanges to nmrsrefactorChange or improve codeChange or improve code
Description
disconnect_vpn()returnsOk(())if VPN doesn't exist (idempotent)forget()returnsErr(NoSavedConnection)if connection doesn't existforget_vpn()returnsErr(NoSavedConnection)if VPN doesn't exist
This is pretty inconsistent behavior; some operations are idempotent, others aren't.
We can make all "delete/forget/disconnect" operations idempotent (return Ok() if already in desired state)
OR we make them all return errors consistently. Best to document this too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfeatureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersnmrsChanges to nmrsChanges to nmrsrefactorChange or improve codeChange or improve code