banshee r4092 - in trunk/banshee: . src/Clients/Nereid/Nereid



Author: abock
Date: Tue Jun  3 19:13:12 2008
New Revision: 4092
URL: http://svn.gnome.org/viewvc/banshee?rev=4092&view=rev

Log:
2008-06-03  Aaron Bockover  <abock gnome org>

    * src/Clients/Nereid/Nereid/Client.cs: Use ??



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Clients/Nereid/Nereid/Client.cs

Modified: trunk/banshee/src/Clients/Nereid/Nereid/Client.cs
==============================================================================
--- trunk/banshee/src/Clients/Nereid/Nereid/Client.cs	(original)
+++ trunk/banshee/src/Clients/Nereid/Nereid/Client.cs	Tue Jun  3 19:13:12 2008
@@ -185,10 +185,7 @@
                     case "help-playback": Console.WriteLine (commands.ToString ("playback")); break;
                     default:
                         if (argument.Key.StartsWith ("help")) {
-                            if (errors == null) {
-                                errors = new List<string> ();
-                            }
-                            errors.Add (argument.Key);
+                            (errors ?? errors = new List<string> ()).Add (argument.Key);
                         }
                         break;
                 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]