[Spice-devel] [PATCH spice-common 5/7] codegen: Reduce indentation

Frediano Ziglio fziglio at redhat.com
Mon Feb 18 16:01:27 UTC 2019


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 python_modules/ptypes.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index e5fb1e9..bc8762f 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -927,8 +927,7 @@ class MessageType(ContainerType):
                 channelname = ""
             if cm.is_server:
                 return codegen.prefix_camel("Msg", channelname, cm.name)
-            else:
-                return codegen.prefix_camel("Msgc", channelname, cm.name)
+            return codegen.prefix_camel("Msgc", channelname, cm.name)
         else:
             return codegen.prefix_camel("Msg", self.name)
 
-- 
2.20.1



More information about the Spice-devel mailing list