<#6456 refactor: replace HasPrefix+TrimPrefix with...
# flyte-github
c
#6456 refactor: replace HasPrefix+TrimPrefix with CutPrefix Pull request opened by studystill ## Tracking issue ## Why are the changes needed? Optimize code using a more modern writing style. Official support from Go, for more details visit https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize. ## What changes were proposed in this pull request? ## How was this patch tested? ### Labels Please add one or more of the following labels to categorize your PR: • added: For new features. • changed: For changes in existing functionality. • deprecated: For soon-to-be-removed features. • removed: For features being removed. • fixed: For any bug fixed. • security: In case of vulnerabilities This is important to improve the readability of release notes. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This pull request refactors the console.go file to improve readability and efficiency by replacing HasPrefix and TrimPrefix with the CutPrefix method, in line with Go's modernization recommendations. Unit tests added: False Estimated effort to review (1-5, lower is better): 2 flyteorg/flyte