-
-
Notifications
You must be signed in to change notification settings - Fork 21
remove duplicate code #137
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
Conversation
|
(format check warnings seems to be not from this PR change but one file in the extension) |
|
don't run the formatter |
This reverts commit e10c6ce.
|
Wait why would that call the other one? I'm confused. Those dispatches are hit by different inputs. |
|
current code is duplicate: the first is the same as the second with PreallocationTools.jl/src/PreallocationTools.jl Lines 59 to 79 in fd3df39
|
|
No, the first is dispatching on |
|
this pr just changes: when dispatched when u is a value, it just calls the 2nd function |
|
oh good point... |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
current code at
PreallocationTools.jl/src/PreallocationTools.jl
Lines 59 to 68 in 07e3a76
just calls
PreallocationTools.jl/src/PreallocationTools.jl
Lines 70 to 79 in 07e3a76
with
eltype(u), no need to write it separately?