owncloud / testing

🔧 app for testing ownCloud
GNU Affero General Public License v3.0
3 stars 4 forks source link

Use strict comparison between strings #71

Closed skshetry closed 5 years ago

skshetry commented 5 years ago

This PR adds a strict comparison for the strings. For now, we are comparing between the string returned by fread and the newline character("\n"). It's fine for now and does not affect any thing.

But, in the future, it might change as pointed out by @individual-it. So, I added string comparison as the following code will work (due to type conversion):

0 == "0"

Tldr: We don't like !=. Use !== as it does not do type conversion.