Merge pull request #24484 from ctjhoa/fix_typo
fix typo in Base64DecodeFunc log
This commit is contained in:
commit
0749e419de
|
@ -29,8 +29,8 @@ var Base64DecodeFunc = function.New(&function.Spec{
|
||||||
return cty.UnknownVal(cty.String), fmt.Errorf("failed to decode base64 data '%s'", s)
|
return cty.UnknownVal(cty.String), fmt.Errorf("failed to decode base64 data '%s'", s)
|
||||||
}
|
}
|
||||||
if !utf8.Valid([]byte(sDec)) {
|
if !utf8.Valid([]byte(sDec)) {
|
||||||
log.Printf("[DEBUG] the result of decoding the the provided string is not valid UTF-8: %s", sDec)
|
log.Printf("[DEBUG] the result of decoding the provided string is not valid UTF-8: %s", sDec)
|
||||||
return cty.UnknownVal(cty.String), fmt.Errorf("the result of decoding the the provided string is not valid UTF-8")
|
return cty.UnknownVal(cty.String), fmt.Errorf("the result of decoding the provided string is not valid UTF-8")
|
||||||
}
|
}
|
||||||
return cty.StringVal(string(sDec)), nil
|
return cty.StringVal(string(sDec)), nil
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue