From 7339e77c6eda5b96874dfc099d5c58da8ed53629 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 28 Nov 2022 11:52:04 +0100 Subject: Refactor: Remove most get prefixes for receiver functions --- internal/fsm/fsm.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/fsm') diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go index b8fd644..c3c7efa 100644 --- a/internal/fsm/fsm.go +++ b/internal/fsm/fsm.go @@ -106,8 +106,8 @@ func (fsm *FSM) HasTransition(check FSMStateID) bool { return false } -// getGraphFilename gets the full path to the graph filename including the .graph extension -func (fsm *FSM) getGraphFilename(extension string) string { +// graphFilename gets the full path to the graph filename including the .graph extension +func (fsm *FSM) graphFilename(extension string) string { debugPath := path.Join(fsm.Directory, "graph") return fmt.Sprintf("%s%s", debugPath, extension) } @@ -115,8 +115,8 @@ func (fsm *FSM) getGraphFilename(extension string) string { // writeGraph writes the state machine to a .graph file func (fsm *FSM) writeGraph() { graph := fsm.GenerateGraph() - graphFile := fsm.getGraphFilename(".graph") - graphImgFile := fsm.getGraphFilename(".png") + graphFile := fsm.graphFilename(".graph") + graphImgFile := fsm.graphFilename(".png") f, err := os.Create(graphFile) if err != nil { return -- cgit v1.2.3