Refining pull request by Otacon22
Simplifying statement using inline if
Updating .gitignore