Skip to content

Commit

Permalink
fix: unnecessary empty slice declaration for tag pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
dechristopher committed Mar 11, 2021
1 parent cd8ed44 commit 9552dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (g *Game) GetTagPair(k string) *TagPair {
// RemoveTagPair removes the tag pair for the given key and
// returns true if a tag pair was removed.
func (g *Game) RemoveTagPair(k string) bool {
cp := []*TagPair{}
var cp []*TagPair
found := false
for _, tag := range g.tagPairs {
if tag.Key == k {
Expand Down

0 comments on commit 9552dd3

Please sign in to comment.