Skip to content

Commit 81ebc5e

Browse files
committed
Fix lint shadowing in attach update paths
1 parent 8299bb9 commit 81ebc5e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

internal/commands/card.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ var cardUpdateCmd = &cobra.Command{
381381
return err
382382
}
383383
if len(cardUpdateAttach) > 0 && !hasDescriptionInput {
384-
currentData, _, err := getSDK().Cards().Get(cmd.Context(), cardNumber)
385-
if err != nil {
386-
return convertSDKError(err)
384+
currentData, _, getErr := getSDK().Cards().Get(cmd.Context(), cardNumber)
385+
if getErr != nil {
386+
return convertSDKError(getErr)
387387
}
388388
if current, ok := normalizeAny(currentData).(map[string]any); ok {
389389
if currentDescription, ok := current["description_html"].(string); ok {

internal/commands/comment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ var commentUpdateCmd = &cobra.Command{
212212
return err
213213
}
214214
if len(commentUpdateAttach) > 0 && !hasBodyInput {
215-
currentData, _, err := getSDK().Comments().Get(cmd.Context(), cardNumber, commentID)
216-
if err != nil {
217-
return convertSDKError(err)
215+
currentData, _, getErr := getSDK().Comments().Get(cmd.Context(), cardNumber, commentID)
216+
if getErr != nil {
217+
return convertSDKError(getErr)
218218
}
219219
if current, ok := normalizeAny(currentData).(map[string]any); ok {
220220
if currentBody, ok := current["body"].(map[string]any); ok {

0 commit comments

Comments
 (0)