Skip to content

Commit 307896b

Browse files
committed
Code comments
1 parent 26fb508 commit 307896b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/headers.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ config, see the "copywrite init" command.`,
9797
SPDXID: conf.Project.License,
9898
}
9999

100-
// If custom license template is configured, reate a temporary file
100+
// By default force addlicense's SDPX template
101+
var useSPDX addlicense.SpdxFlag = "only"
102+
103+
// If custom license template is configured, create a temporary file
101104
// and write template to it
102105
licenseFile := ""
103-
var useSPDX addlicense.SpdxFlag = "only"
104106
if conf.Project.LicenseTemplate != "" {
105107
errMsg := "Failed to create a temporary file for custom license template: %v\n\n"
106108
if f, e := os.CreateTemp("", "copywrite-custom-license.tpl"); e == nil {

0 commit comments

Comments
 (0)