Skip to content

Commit a970e3b

Browse files
resolve linter error
Signed-off-by: Tanishq Chaudhary <[email protected]>
1 parent 4928304 commit a970e3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

launch/launch/launch_service.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ def __init__(
7171
# Set the log file name.
7272
if log_file_name is not None:
7373
# Ensure the log file name ends with `.log`
74-
if not log_file_name.endswith(".log"):
75-
log_file_name += ".log"
74+
if not log_file_name.endswith('.log'):
75+
log_file_name += '.log'
7676
launch.logging.launch_config.file_name = log_file_name
7777
self.__debug = debug
7878
self.__argv = argv if argv is not None else []
7979

8080
# Setup logging
8181
if log_file_name is not None:
82-
logger_name = log_file_name.removesuffix(".log")
82+
logger_name = log_file_name.removesuffix('.log')
8383
self.__logger = launch.logging.get_logger(logger_name)
8484
else:
8585
self.__logger = launch.logging.get_logger('launch')

0 commit comments

Comments
 (0)