[smuxi: 138/179] Engine-MessageBuffer: remove needless null check
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 138/179] Engine-MessageBuffer: remove needless null check
- Date: Sat, 4 Nov 2017 05:49:28 +0000 (UTC)
commit 14b62148c546f33f9854a26b3ccec9647e52165c
Author: Mirco Bauer <meebey meebey net>
Date: Sun Apr 30 23:23:26 2017 +0800
Engine-MessageBuffer: remove needless null check
The surrounding code branch checked already if destinationBuffer is null and
destinationBuffer doesn't get modified in that code branch thus it is needless
and can be safely removed.
src/Engine-MessageBuffer/Main.cs | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/Engine-MessageBuffer/Main.cs b/src/Engine-MessageBuffer/Main.cs
index 4c6aafb..32e31f8 100644
--- a/src/Engine-MessageBuffer/Main.cs
+++ b/src/Engine-MessageBuffer/Main.cs
@@ -1,6 +1,6 @@
// Smuxi - Smart MUltipleXed Irc
//
-// Copyright (c) 2014 Mirco Bauer <meebey meebey net>
+// Copyright (c) 2014, 2017 Mirco Bauer <meebey meebey net>
//
// Full GPL License: <http://www.gnu.org/licenses/gpl.txt>
//
@@ -266,9 +266,7 @@ namespace Smuxi.Engine
Console.WriteLine(json);
}
}
- if (destinationBuffer == null) {
- Console.WriteLine("]");
- }
+ Console.WriteLine("]");
} else {
foreach (var msg in sourceBuffer) {
destinationBuffer.Add(msg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]