We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbde32a commit 4b1e211Copy full SHA for 4b1e211
solana/programs/ntt-quoter/src/processor/admin.rs
@@ -84,7 +84,7 @@ pub fn set_assistant(ctx: Context<SetAssistant>) -> Result<()> {
84
.accounts
85
.assistant
86
.as_deref()
87
- .map_or(Pubkey::default(), |val| val.key());
+ .map_or_else(|| { Pubkey::default() }, |val| val.key());
88
Ok(())
89
}
90
0 commit comments