From 6413313529874efbb5d79827dff191e4d8a82db9 Mon Sep 17 00:00:00 2001 From: Alisdair McDiarmid Date: Fri, 14 Feb 2020 14:48:50 -0500 Subject: [PATCH] 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. --- command/graph.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/command/graph.go b/command/graph.go index 47c61b227..440dd74da 100644 --- a/command/graph.go +++ b/command/graph.go @@ -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 {