summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2020-02-18 01:07:12 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-19 15:20:31 +0100
commitc00c85c166d130f7737a7f889127f5d6d2f9163b (patch)
tree2681e1142e70a66f463be3d4576f10bdd626f6af
parentc3a616cdb2ab2bba0ef239f90fa4a42725a6c55a (diff)
efl_con: add a default condition to switch statement
this patch modifies conditions to extract range conditions out of switch statement Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11370
-rw-r--r--src/lib/ecore_con/efl_net_dialer_websocket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/ecore_con/efl_net_dialer_websocket.c b/src/lib/ecore_con/efl_net_dialer_websocket.c
index e6672e600c..a16579cfc6 100644
--- a/src/lib/ecore_con/efl_net_dialer_websocket.c
+++ b/src/lib/ecore_con/efl_net_dialer_websocket.c
@@ -86,14 +86,12 @@ _efl_net_dialer_websocket_close_reason_check(Efl_Net_Dialer_Websocket_Close_Reas
86 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_TOO_BIG: 86 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_TOO_BIG:
87 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_MISSING_EXTENSION: 87 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_MISSING_EXTENSION:
88 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_SERVER_ERROR: 88 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_SERVER_ERROR:
89 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_IANA_REGISTRY_START:
90 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_IANA_REGISTRY_END:
91 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_PRIVATE_START:
92 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_PRIVATE_END:
93 return EINA_TRUE; 89 return EINA_TRUE;
94 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_NO_REASON: 90 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_NO_REASON:
95 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_ABRUPTLY: 91 case EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_ABRUPTLY:
96 return EINA_FALSE; 92 return EINA_FALSE;
93 default:
94 break;
97 } 95 }
98 96
99 if ((r >= EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_IANA_REGISTRY_START) && 97 if ((r >= EFL_NET_DIALER_WEBSOCKET_CLOSE_REASON_IANA_REGISTRY_START) &&