mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
notes: Remove a pointless "if"
When you load /mods/notes/ in your browser, OnWebRequest will be called with sPageName == "index". So that variable can never actually be empty. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2240 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -165,7 +165,7 @@ public:
|
||||
}
|
||||
|
||||
virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) {
|
||||
if (sPageName.empty() || sPageName == "index") {
|
||||
if (sPageName == "index") {
|
||||
for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) {
|
||||
CTemplate& Row = Tmpl.AddRow("NotesLoop");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user