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

Remove Debug.Assert #893

Merged
merged 3 commits into from
Jul 8, 2019
Merged

Remove Debug.Assert #893

merged 3 commits into from
Jul 8, 2019

Conversation

shargon
Copy link
Member

@shargon shargon commented Jul 6, 2019

Acording to https://www.google.com/search?q=debug.assert&oq=Debug.Assert&aqs=chrome.0.0l6.2038j0j7&sourceid=chrome&ie=UTF-8

By default, the Debug.Assert method works only in debug builds. Use the Trace.Assert method if you want to do assertions in release builds. For more information, see Assertions in Managed Code.

So we don't need to execute it in release mode.

@shargon shargon requested a review from erikzhang July 6, 2019 09:03
@codecov-io
Copy link

codecov-io commented Jul 6, 2019

Codecov Report

Merging #893 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #893      +/-   ##
==========================================
+ Coverage   45.04%   45.05%   +0.01%     
==========================================
  Files         178      178              
  Lines       12603    12600       -3     
==========================================
  Hits         5677     5677              
+ Misses       6926     6923       -3
Impacted Files Coverage Δ
neo/Cryptography/ECC/ECFieldElement.cs 32.52% <ø> (+0.52%) ⬆️
neo/Cryptography/ECC/ECPoint.cs 76.29% <ø> (+0.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29fb4ed...d2751c4. Read the comment docs.

@erikzhang
Copy link
Member

We can just remove these lines.

@erikzhang erikzhang changed the title if #Debug Remove Debug.Assert Jul 8, 2019
@shargon shargon merged commit 9bb75ec into neo-project:master Jul 8, 2019
@shargon shargon deleted the if-debug branch July 8, 2019 09:31
Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
Tommo-L pushed a commit to Tommo-L/neo that referenced this pull request Jun 22, 2020
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.

None yet

3 participants