Minor refactor.
authorZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Thu, 27 Nov 2008 16:49:19 +0000 (16:49 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Thu, 27 Nov 2008 16:49:19 +0000 (16:49 +0000)
svn path=/trunk/; revision=314

src/rygel/rygel-media-server-factory.vala

index 1e44adc..270ca09 100644 (file)
@@ -113,12 +113,10 @@ public class Rygel.MediaServerFactory {
         /* Host our modified file */
         this.context.host_path (desc_path, "/" + modified_desc);
 
-        var server = new MediaServer (this.context,
-                                      plugin,
-                                      doc,
-                                      modified_desc);
-
-        return server;
+        return new MediaServer (this.context,
+                                plugin,
+                                doc,
+                                modified_desc);
     }
 
     private GUPnP.Context create_upnp_context () throws GLib.Error {