Clean up.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3696 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer
2003-06-27 17:19:46 +00:00
parent 2e07400817
commit 3759446ddd
@@ -136,11 +136,8 @@ bool Scanner::ReadFloat(float *value)
bool Scanner::NextChar(char ch) { bool Scanner::NextChar(char ch) {
SkipSpaces(); SkipSpaces();
int c = GetCh(); int c = GetCh();
if (c == ch) { bool match = c == ch;
return true; if (!match) UngetCh(c);
} else { return match;
UngetCh(c);
return false;
}
} }