summaryrefslogtreecommitdiff
path: root/internal/fsm
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 11:52:04 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 12:03:16 +0100
commit7339e77c6eda5b96874dfc099d5c58da8ed53629 (patch)
treeb602159b0c397cbaa4f8983aea987274163fe357 /internal/fsm
parente9f8db8ee8fccf60e58deb1d72766f94a053bb16 (diff)
Refactor: Remove most get prefixes for receiver functions
Diffstat (limited to 'internal/fsm')
-rw-r--r--internal/fsm/fsm.go8
1 files changed, 4 insertions, 4 deletions
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