Skip to content

Commit 16a17d7

Browse files
committed
tsp_cli_client: Fix warning about duplicate string
Fix the SonarLint warning about this previously duplicated string value. Signed-off-by: Marco Miller <[email protected]>
1 parent fccf8f5 commit 16a17d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tsp_cli_client

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ from tsp.tsp_client import TspClient
4141
# api_token = 'your_token_goes_here'
4242
NS_PER_SEC = 1000000000
4343

44+
TRACE_MISSING = "Trace UUID is missing"
45+
4446
# pylint: disable=consider-using-f-string
4547

4648

@@ -132,7 +134,7 @@ def __get_tree(uuid, outputid, treetype):
132134
else:
133135
sys.exit(1)
134136
else:
135-
print("Trace UUID is missing")
137+
print(TRACE_MISSING)
136138
sys.exit(1)
137139
return None
138140

@@ -328,7 +330,7 @@ if __name__ == "__main__":
328330
if output_descriptor is not None:
329331
print(output_descriptor)
330332
else:
331-
print("Trace UUID is missing")
333+
print(TRACE_MISSING)
332334
sys.exit(1)
333335

334336
if options.get_tree:
@@ -359,7 +361,7 @@ if __name__ == "__main__":
359361
else:
360362
sys.exit(1)
361363
else:
362-
print("Trace UUID is missing")
364+
print(TRACE_MISSING)
363365
sys.exit(1)
364366

365367
if options.extensions:

0 commit comments

Comments
 (0)