Skip to content

Commit

Permalink
rename: jsonEncodedInputs
Browse files Browse the repository at this point in the history
Took 4 minutes
  • Loading branch information
Nasfame committed Oct 20, 2023
1 parent d17099f commit 55d274e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/module/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ func PrepareModule(module data.ModuleConfig) (string, error) {
return string(fileContents), nil
}

func subst(format string, inputs ...string) string {
func subst(format string, jsonEncodedInputs ...string) string {

jsonDecodedInputs := make([]string, len(inputs))
jsonDecodedInputs := make([]string, len(jsonEncodedInputs))

for _, input := range inputs {
for _, input := range jsonEncodedInputs {
var s string

if err := json.Unmarshal([]byte(input), &s); err != nil {
Expand Down

0 comments on commit 55d274e

Please sign in to comment.