From d7f711f40ee2db19096e9056dd72749847d0cc40 Mon Sep 17 00:00:00 2001 From: Camille TJHOA Date: Fri, 27 Mar 2020 17:22:40 +0000 Subject: [PATCH] fix typo in Base64DecodeFunc log --- lang/funcs/encoding.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/funcs/encoding.go b/lang/funcs/encoding.go index af93f08dc..d9a0bbb31 100644 --- a/lang/funcs/encoding.go +++ b/lang/funcs/encoding.go @@ -29,8 +29,8 @@ var Base64DecodeFunc = function.New(&function.Spec{ return cty.UnknownVal(cty.String), fmt.Errorf("failed to decode base64 data '%s'", s) } if !utf8.Valid([]byte(sDec)) { - log.Printf("[DEBUG] the result of decoding the 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") + 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 provided string is not valid UTF-8") } return cty.StringVal(string(sDec)), nil },