Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Method always returns false - Refactor Bug #174

Open
yurelle opened this issue Feb 19, 2018 · 3 comments
Open

Method always returns false - Refactor Bug #174

yurelle opened this issue Feb 19, 2018 · 3 comments
Labels

Comments

@yurelle
Copy link

yurelle commented Feb 19, 2018

This function always returns false. Several years ago, this code was refactored to add the if condition (in this commit; line: [old]-97 [new]-111). In the original code, the webXml.exists() was the last line of the function, and thus acted as a return value. However, once moved to inside an if-block, this auto return no longer works. Thus, this function always returns false. A manual return needs to be added to this line.

Fix:
return webXml.exists()

@bmuschko
Copy link
Owner

Looks like you are right. Would you be interested in providing a pull request?

@bmuschko bmuschko added the Bug label Apr 14, 2018
@yurelle
Copy link
Author

yurelle commented Apr 16, 2018 via email

@bmuschko
Copy link
Owner

@yurelle Just as a heads up: I am asking because I won't have the time to look into it soon. If you have an urgent need for the bug to be fixed then you'll need to provide a pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants