Skip to content

Commit

Permalink
Minor changes to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Dec 27, 2024
1 parent 4f482bf commit 80c5c13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions v2/macro.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ type Macro struct {

// NewMacro creates a new Macro struct
func NewMacro() *Macro {
var m Macro
m.KeyPresses = make([]string, 0)
return &m
return &Macro{KeyPresses: make([]string, 0)}
}

// Add adds a keypress to this macro, when recording
Expand Down

0 comments on commit 80c5c13

Please sign in to comment.