Skip to content

Commit d6ac2f3

Browse files
committed
Fix unused variable warning in extend_session_ttl function
1 parent 292330e commit d6ac2f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contracts/upto-session/src/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn has_session(env: &Env, session_id: &BytesN<32>) -> bool {
7272
pub fn extend_session_ttl(env: &Env, session_id: &BytesN<32>) -> Result<(), ()> {
7373
// Extend the TTL of the session storage entry
7474
// This resets the entry's expiration clock to TTL_EXTENSION_AMOUNT ledgers
75-
if let Some(mut session) = read_session(env, session_id) {
75+
if let Some(session) = read_session(env, session_id) {
7676
// Only extend TTL for open or cancelled sessions, not settled ones
7777
match session.status {
7878
crate::SessionStatus::Open | crate::SessionStatus::Cancelled => {

0 commit comments

Comments
 (0)