Skip to content

Commit

Permalink
linter: fix unnecessary conversion linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Sep 23, 2023
1 parent cb472ae commit 7af8eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x509/bash.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ func run(name string, arg ...string) string {

func CreateFactoryCa(ou string) string {
run("./" + CreateCaScript)
return string(readFile(FactoryCaCertFile))
return readFile(FactoryCaCertFile)
}

func CreateDeviceCa(cn string, ou string) string {
run("./"+CreateDeviceCaScript, DeviceCaKeyFile, DeviceCaCertFile)
return string(readFile(DeviceCaCertFile))
return readFile(DeviceCaCertFile)
}

func SignTlsCsr(csrPem string) string {
Expand Down

0 comments on commit 7af8eda

Please sign in to comment.