Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted unnecessary piece of code #10

Closed
wants to merge 1 commit into from

Conversation

genesis19
Copy link

This piece of code will never happen

This piece of code will never happen
@vrana
Copy link
Owner

vrana commented Apr 30, 2012

It happens at the end of the query.

@vrana vrana closed this Apr 30, 2012
@genesis19
Copy link
Author

I think that this mistake could be simplified to

$true = true;
if (!$true) {
   //$true is falsy
} else {
    //$true is not falsy, which means that the next line will fail (evaluate to false)
    if (!$true) {
       //this will never happen
    } 
}  

Am I completely wrong?

@vrana
Copy link
Owner

vrana commented May 2, 2012

(!$found && $fp && !feof($fp)) is not the same as (!$found && rtrim($query) == "").

@genesis19
Copy link
Author

Damn I feel stupid, didn't look at the rest of if statement. Sorry

Roy-Orbison pushed a commit to Roy-Orbison/adminerevo that referenced this pull request May 22, 2023
…nguage_file

Modification of bangla language file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants