aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/ConsoleUtil.cs
diff options
context:
space:
mode:
authorUbitUmarov2019-10-22 12:23:19 +0100
committerUbitUmarov2019-10-22 12:23:19 +0100
commitb98ad6c53c484aa2744c5040c9f29c475c3d4f72 (patch)
tree2ed849e6441381b48a45c87b0e2df8fe9c80a7af /OpenSim/Framework/Console/ConsoleUtil.cs
parentmissing file (diff)
downloadopensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.zip
opensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.tar.gz
opensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.tar.bz2
opensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.tar.xz
remove some useless NULL arguments
Diffstat (limited to 'OpenSim/Framework/Console/ConsoleUtil.cs')
-rwxr-xr-xOpenSim/Framework/Console/ConsoleUtil.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Framework/Console/ConsoleUtil.cs b/OpenSim/Framework/Console/ConsoleUtil.cs
index 5342a29..2f73a8d 100755
--- a/OpenSim/Framework/Console/ConsoleUtil.cs
+++ b/OpenSim/Framework/Console/ConsoleUtil.cs
@@ -75,7 +75,7 @@ namespace OpenSim.Framework.Console
75 { 75 {
76 if (File.Exists(path)) 76 if (File.Exists(path))
77 { 77 {
78 console.Output("File {0} already exists. Please move or remove it.", null, path); 78 console.Output("File {0} already exists. Please move or remove it.", path);
79 return false; 79 return false;
80 } 80 }
81 81
@@ -97,7 +97,7 @@ namespace OpenSim.Framework.Console
97 if (!UUID.TryParse(rawUuid, out uuid)) 97 if (!UUID.TryParse(rawUuid, out uuid))
98 { 98 {
99 if (console != null) 99 if (console != null)
100 console.Output("ERROR: {0} is not a valid uuid", null, rawUuid); 100 console.Output("ERROR: {0} is not a valid uuid", rawUuid);
101 101
102 return false; 102 return false;
103 } 103 }
@@ -110,7 +110,7 @@ namespace OpenSim.Framework.Console
110 if (!uint.TryParse(rawLocalId, out localId)) 110 if (!uint.TryParse(rawLocalId, out localId))
111 { 111 {
112 if (console != null) 112 if (console != null)
113 console.Output("ERROR: {0} is not a valid local id", null, localId); 113 console.Output("ERROR: {0} is not a valid local id", localId);
114 114
115 return false; 115 return false;
116 } 116 }
@@ -118,7 +118,7 @@ namespace OpenSim.Framework.Console
118 if (localId == 0) 118 if (localId == 0)
119 { 119 {
120 if (console != null) 120 if (console != null)
121 console.Output("ERROR: {0} is not a valid local id - it must be greater than 0", null, localId); 121 console.Output("ERROR: {0} is not a valid local id - it must be greater than 0", localId);
122 122
123 return false; 123 return false;
124 } 124 }
@@ -150,7 +150,7 @@ namespace OpenSim.Framework.Console
150 } 150 }
151 151
152 if (console != null) 152 if (console != null)
153 console.Output("ERROR: {0} is not a valid UUID or local id", null, rawId); 153 console.Output("ERROR: {0} is not a valid UUID or local id", rawId);
154 154
155 return false; 155 return false;
156 } 156 }
@@ -167,7 +167,7 @@ namespace OpenSim.Framework.Console
167 if (!bool.TryParse(rawConsoleString, out b)) 167 if (!bool.TryParse(rawConsoleString, out b))
168 { 168 {
169 if (console != null) 169 if (console != null)
170 console.Output("ERROR: {0} is not a true or false value", null, rawConsoleString); 170 console.Output("ERROR: {0} is not a true or false value", rawConsoleString);
171 171
172 return false; 172 return false;
173 } 173 }
@@ -187,7 +187,7 @@ namespace OpenSim.Framework.Console
187 if (!int.TryParse(rawConsoleInt, out i)) 187 if (!int.TryParse(rawConsoleInt, out i))
188 { 188 {
189 if (console != null) 189 if (console != null)
190 console.Output("ERROR: {0} is not a valid integer", null, rawConsoleInt); 190 console.Output("ERROR: {0} is not a valid integer", rawConsoleInt);
191 191
192 return false; 192 return false;
193 } 193 }
@@ -207,7 +207,7 @@ namespace OpenSim.Framework.Console
207 if (!float.TryParse(rawConsoleInput, out i)) 207 if (!float.TryParse(rawConsoleInput, out i))
208 { 208 {
209 if (console != null) 209 if (console != null)
210 console.Output("ERROR: {0} is not a valid float", null, rawConsoleInput); 210 console.Output("ERROR: {0} is not a valid float", rawConsoleInput);
211 211
212 return false; 212 return false;
213 } 213 }
@@ -227,7 +227,7 @@ namespace OpenSim.Framework.Console
227 if (!double.TryParse(rawConsoleInput, out i)) 227 if (!double.TryParse(rawConsoleInput, out i))
228 { 228 {
229 if (console != null) 229 if (console != null)
230 console.Output("ERROR: {0} is not a valid double", null, rawConsoleInput); 230 console.Output("ERROR: {0} is not a valid double", rawConsoleInput);
231 231
232 return false; 232 return false;
233 } 233 }
@@ -249,7 +249,7 @@ namespace OpenSim.Framework.Console
249 if (i < 0) 249 if (i < 0)
250 { 250 {
251 if (console != null) 251 if (console != null)
252 console.Output("ERROR: {0} is not a positive integer", null, rawConsoleInt); 252 console.Output("ERROR: {0} is not a positive integer", rawConsoleInt);
253 253
254 return false; 254 return false;
255 } 255 }