Skip to content

Commit 3391763

Browse files
committed
Fix string statement and unused variable in examples/confluence_v2_comments_example.py
1 parent 53e3fde commit 3391763

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/confluence_v2_comments_example.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,9 @@ def delete_comment_example(comment_id):
190190

191191
try:
192192
# Delete the comment
193-
result = confluence.delete_comment(comment_id)
193+
confluence.delete_comment(comment_id)
194194

195-
if result:
196-
print(f"Successfully deleted comment {comment_id}")
197-
else:
198-
print(f"Failed to delete comment {comment_id}")
195+
print(f"Successfully deleted comment {comment_id}")
199196

200197
except Exception as e:
201198
print(f"Error deleting comment: {e}")

0 commit comments

Comments
 (0)