diff --git a/stone/backends/swift_client.py b/stone/backends/swift_client.py index f068f5de..3690ff5d 100644 --- a/stone/backends/swift_client.py +++ b/stone/backends/swift_client.py @@ -247,8 +247,8 @@ def _generate_request_boxes(self, api): template.globals = template_globals # don't include the default case in the generated switch statement if it's unreachable - include_default_in_switch = \ - len(background_objc_routes) < len(background_compatible_routes) + include_default_in_switch = True + # TODO(jlocke): implement this to eliminate the unreachable code warning output = template.render( background_compatible_routes=background_compatible_routes,