mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* Spring cleaning, round 3029
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Net;
|
||||
using log4net.Config;
|
||||
using Nini.Config;
|
||||
using OpenSim.Framework;
|
||||
@@ -137,7 +138,7 @@ namespace OpenSim
|
||||
// System.Web.HttpUtility.UrlEncode(msg));
|
||||
//wc.Dispose();
|
||||
}
|
||||
catch (Exception)
|
||||
catch (WebException)
|
||||
{
|
||||
// Ignore
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ namespace OpenSim
|
||||
{
|
||||
// Set BuildVersion String for Show version command
|
||||
string svnFileName = "../.svn/entries";
|
||||
string inputLine = null;
|
||||
string inputLine;
|
||||
int strcmp;
|
||||
|
||||
if (File.Exists(svnFileName))
|
||||
@@ -375,7 +375,7 @@ namespace OpenSim
|
||||
EntriesFile.Close();
|
||||
}
|
||||
|
||||
if ((buildVersion != null) && (buildVersion.Length > 0))
|
||||
if (!string.IsNullOrEmpty(buildVersion))
|
||||
{
|
||||
m_log.Info("[STARTUP]: OpenSim version: " + VersionInfo.Version + ", SVN build r" + buildVersion + "\n");
|
||||
}
|
||||
|
||||
@@ -643,7 +643,7 @@ namespace OpenSim
|
||||
break;
|
||||
|
||||
case "version":
|
||||
if ((buildVersion != null) && (buildVersion.Length > 0))
|
||||
if (!string.IsNullOrEmpty(buildVersion))
|
||||
{
|
||||
m_console.Notice("The build version is: r" + buildVersion);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user