Skip to content

Remove redundant exception handling - #32

Merged
rtobar merged 1 commit into
asgr:masterfrom
Enchufa2:patch-1
Mar 30, 2026
Merged

rtobar merged 1 commit into
asgr:masterfrom
Enchufa2:patch-1

Conversation

@Enchufa2

@Enchufa2 Enchufa2 commented Mar 28, 2026 •

Copy link
Copy Markdown

Exception handling is provided by Rcpp, no need to add another try/catch layer.

(BTW, Rcpp also calls wrap for you, so return wrap(out) is also redundant)

@rtobar

rtobar commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

¡Gracias Iñaki!

We inherited this codebase some time ago, and other than adding or fixing a thing here and there, maintenance has been minimal. This patch looks correct to me, so I'll happily apply it. Thanks also for the tip about wrap, I seem to remember that was odd too, but never dug deeper, I'll have a look after merging this.

FWIW, the test failure is because of an upstream issue with the rlang package, see r-lib/rlang#1887.

@rtobar
rtobar merged commit cc8cec2 into asgr:master Mar 30, 2026
4 of 5 checks passed
@Enchufa2
Enchufa2 deleted the patch-1 branch March 30, 2026 15:46
@Enchufa2
Enchufa2 restored the patch-1 branch March 30, 2026 15:46
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