From: Kamalesh Babulal Date: Wed, 23 Feb 2022 06:30:37 +0000 (+0530) Subject: utils.py: remove unreachable code in get_file_owner_username() X-Git-Tag: v3.1.0~308^2~2^2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=655271e7c8a83c4e3d0f22b87a54e1b0b394c770;p=thirdparty%2Flibcgroup.git utils.py: remove unreachable code in get_file_owner_username() remove the return statement, that will never get executed in get_file_owner_username(). Reported-by: LGTM Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/ftests/utils.py b/ftests/utils.py index 396f72d6..8b986053 100644 --- a/ftests/utils.py +++ b/ftests/utils.py @@ -20,7 +20,6 @@ # from run import Run -import os # function to indent a block of text by cnt number of spaces @@ -53,7 +52,6 @@ def get_file_owner_username(config, filename): return config.container.run(cmd, shell_bool=True) else: return Run.run(cmd, shell_bool=True) - return os.stat(filename).st_uid def get_file_owner_gid(config, filename):