Skip to content

Commit

Permalink
call take on local variable instead of original value
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoule86 authored Feb 9, 2025
1 parent 4cb6031 commit a05d79f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class SystemHandler(

val normalizedZone = timezone.id
if (normalizedZone.length > MAX_TIMEZONE_NAME_LENGTH) {
normalizedZone = timezone.id.take(MAX_TIMEZONE_NAME_LENGTH)
normalizedZone = normalizedZone.take(MAX_TIMEZONE_NAME_LENGTH)
Logging.i("Time Zone ${timezone.id} exceeds maximum value length and has been truncated to ${normalizedZone}")
}

Expand Down

0 comments on commit a05d79f

Please sign in to comment.