From 2e53b7ff217ebe85bdd28621a47d26b72e801bc1 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Wed, 25 Sep 2024 17:01:14 -0700 Subject: [PATCH] Inline. --- clients/redshift/cast.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/redshift/cast.go b/clients/redshift/cast.go index 540f66804..52af74d7f 100644 --- a/clients/redshift/cast.go +++ b/clients/redshift/cast.go @@ -11,8 +11,7 @@ import ( const maxRedshiftLength int32 = 65535 func replaceExceededValues(colVal string, colKind typing.KindDetails, truncateExceededValue bool) string { - structOrString := colKind.Kind == typing.Struct.Kind || colKind.Kind == typing.String.Kind - if structOrString { + if colKind.Kind == typing.Struct.Kind || colKind.Kind == typing.String.Kind { maxLength := maxRedshiftLength // If the customer has specified the maximum string precision, let's use that as the max length. if colKind.OptionalStringPrecision != nil {