Skip to content

Commit 7716317

Browse files
committed
fix: remove redundant begin, QA-05
1 parent 3b63c65 commit 7716317

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

stackslib/src/chainstate/stacks/boot/sip-031.clar

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@
5858
;; Returns `true` if the recipient was updated.
5959
(define-public (update-recipient (new-recipient principal))
6060
(begin
61-
(begin
62-
(try! (validate-caller))
63-
(print {
64-
topic: "update-recipient",
65-
old-recipient: (var-get recipient),
66-
new-recipient: new-recipient,
67-
})
68-
(var-set recipient new-recipient)
69-
(ok true)
70-
)
61+
(try! (validate-caller))
62+
(print {
63+
topic: "update-recipient",
64+
old-recipient: (var-get recipient),
65+
new-recipient: new-recipient,
66+
})
67+
(var-set recipient new-recipient)
68+
(ok true)
7169
)
7270
)
7371

0 commit comments

Comments
 (0)