Skip to content

Conversation

@oxf888
Copy link

@oxf888 oxf888 commented Apr 20, 2021

src/raven.erl Outdated
iolist_to_binary(io_lib:format("~120p", [Term])).

request(Document, ?SENTRY_VER2) ->
Cfg = get_config(),
Copy link
Owner

@artemeff artemeff Jun 9, 2021

Choose a reason for hiding this comment

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

you can provide Cfg from above and match on it to prevent calling get_config/0 twice :)

Copy link
Author

Choose a reason for hiding this comment

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

moved cfg to guard

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