Skip to content

Remove Debug.Assert#893

Merged
shargon merged 3 commits intoneo-project:masterfrom
shargon:if-debug
Jul 8, 2019
Merged

Remove Debug.Assert#893
shargon merged 3 commits intoneo-project:masterfrom
shargon:if-debug

Conversation

@shargon
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

3 participants