From 9435418bc0d10c42f1ab632a75b9597fbad6880e Mon Sep 17 00:00:00 2001 From: chenke Date: Mon, 11 Mar 2019 11:54:19 +0800 Subject: [PATCH] Remove unused type check 'int' in audit.py Although this method does not report an error, this type check 'int' is redundant and may be misleading. Refercnce code url: https://github.com/openstack/wsme/blob/master/wsme/api.py Change-Id: I631b5f9901790666e7f20275e8c8b99f06f06f0a --- watcher/api/controllers/v1/audit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/api/controllers/v1/audit.py b/watcher/api/controllers/v1/audit.py index 7ea89d92e..3d6cf18ff 100644 --- a/watcher/api/controllers/v1/audit.py +++ b/watcher/api/controllers/v1/audit.py @@ -523,7 +523,7 @@ class AuditsController(rest.RestController): return audits_collection @wsme_pecan.wsexpose(AuditCollection, types.uuid, int, wtypes.text, - wtypes.text, wtypes.text, wtypes.text, int) + wtypes.text, wtypes.text, wtypes.text) def get_all(self, marker=None, limit=None, sort_key='id', sort_dir='asc', goal=None, strategy=None): """Retrieve a list of audits.