Fix some compiler warnings. Minor formatting cleanup.

This commit is contained in:
Jeff Ames
2009-02-13 02:52:08 +00:00
parent 95d53d48d4
commit 163c1026d1
6 changed files with 9 additions and 15 deletions

View File

@@ -293,7 +293,7 @@ namespace OpenSim.Framework.Console
if (s == String.Empty)
{
CommandInfo ci = (CommandInfo)current[String.Empty];
if (ci.fn.Count != null)
if (ci.fn.Count != 0)
addcr = true;
}
else
@@ -355,7 +355,7 @@ namespace OpenSim.Framework.Console
if (current.ContainsKey(String.Empty))
{
CommandInfo ci = (CommandInfo)current[String.Empty];
if (ci.fn.Count == null)
if (ci.fn.Count == 0)
return new string[0];
foreach (CommandDelegate fn in ci.fn)
fn(ci.module, result);