command/graph: Remove no-op state unlock

The graph command never locks the state, so this unlock operation was a
no-op and is a bit of a red herring. Remove it.
This commit is contained in:
Alisdair McDiarmid 2020-02-14 14:48:50 -05:00
parent 701d095808
commit 6413313529
1 changed files with 0 additions and 7 deletions

View File

@ -111,13 +111,6 @@ func (c *GraphCommand) Run(args []string) int {
return 1
}
defer func() {
err := opReq.StateLocker.Unlock(nil)
if err != nil {
c.Ui.Error(err.Error())
}
}()
// Determine the graph type
graphType := terraform.GraphTypePlan
if plan != nil {