Skip to content

Cleaning NCQ Code#38

Open
felipejrabelo wants to merge 2 commits into
Brittany-Reid:masterfrom
felipejrabelo:master
Open

Cleaning NCQ Code#38
felipejrabelo wants to merge 2 commits into
Brittany-Reid:masterfrom
felipejrabelo:master

Conversation

@felipejrabelo
Copy link
Copy Markdown

DO NOT NEED TO ACCEPT THIS PULL REQUEST

NCQ might have been changed locally in the author's computer (out of sync).

Just started doing some code cleaning:

  • Removed a duplicated IF statement to avoid extra comparisons inside a loop.

  • Started to use string interpolation instead concatenation.

  • Add constants to avoid string repetitions all over the code.

All tests passed after changes !

I have notice that by starting two process of NCQ the temporary folders (tmp1, tmp2,...) can be replaced or erased by one process or another cause the code do not check if the folder already exists.

@Brittany-Reid
Copy link
Copy Markdown
Owner

Hi Felipe,

Thanks for the pull request.

I will give this a proper check after our session (I don't want to make any changes until the sessions are complete).

I have notice that by starting two process of NCQ the temporary folders (tmp1, tmp2,...) can be replaced or erased by one process or another cause the code do not check if the folder already exists.

Yep, for the running of the sessions we need to keep a user's code for research purposes.

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