Skip to content

Commit

Permalink
Fix no longer needed params to test plan header
Browse files Browse the repository at this point in the history
  • Loading branch information
hasty committed Sep 3, 2024
1 parent c25afdd commit 5aa7e07
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions testplan/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package testplan
import (
"fmt"
"strings"
"time"

"github.com/project-chip/alchemy/matter"
)
Expand Down Expand Up @@ -48,11 +47,7 @@ This section covers the {clustername} Cluster Test Plan related PICS items that

func renderHeader(cluster *matter.Cluster, b *strings.Builder) (err error) {

now := time.Now()
longDate := now.Format("02-Jan-2006")
shortDate := now.Format("2006-01-02")
header := fmt.Sprintf(header, cluster.Name, longDate, cluster.PICS, cluster.Name, shortDate)
header := fmt.Sprintf(header, cluster.Name, cluster.PICS, cluster.Name)
_, err = b.WriteString(header)

return
}

0 comments on commit 5aa7e07

Please sign in to comment.