Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add Error Handling to Resolve Linting Errors #12046

Closed
wants to merge 3 commits into from

Conversation

rjan90
Copy link
Contributor

@rjan90 rjan90 commented May 27, 2024

Related Issues

#12044

Proposed Changes

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • If the PR affects users (e.g., new feature, bug fix, system requirements change), update the CHANGELOG.md and add details to the UNRELEASED section.
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

Copy link

github-actions bot commented May 27, 2024

All checks have completed

❌ Failed Check / Check (lint-all) (pull_request)
❌ Failed Test / Test (itest-deals_padding) (pull_request)

@rjan90 rjan90 changed the title chore: Add Error Handling for fmt Functions to Resolve Linting Errors chore: Add Error Handling to Resolve Linting Errors May 27, 2024
@rjan90 rjan90 force-pushed the chore-fix-lint-errors branch from 50a08d0 to c8764d1 Compare May 27, 2024 09:55
fmt.Fprintln(cctx.App.Writer, "actor creation failed!")
return err
if _, err := fmt.Fprintln(cctx.App.Writer, "actor creation failed!"); err != nil {
return err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore the error and return err - this branch always return err anyway

@rjan90 rjan90 force-pushed the chore-fix-lint-errors branch from 2c4ae90 to 4b484ee Compare May 27, 2024 12:56
fix: add error handling to resolve lint-errors
@rjan90 rjan90 force-pushed the chore-fix-lint-errors branch from f2948f2 to c99bc2b Compare May 27, 2024 18:13
rjan90 added 2 commits May 27, 2024 20:22
fix: add error handling to resolve lint-errors
Add more error handling to resolve lint-errors
@rvagg
Copy link
Member

rvagg commented Jun 4, 2024

taken up @ #12065

@rvagg rvagg closed this Jun 4, 2024
@rvagg rvagg deleted the chore-fix-lint-errors branch June 4, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants