From 67964d25a3ae1920712028ff2b750e9fdc167739 Mon Sep 17 00:00:00 2001
From: Nuke <nukemandan@protonmail.com>
Date: Tue, 15 Aug 2023 23:43:35 -0600
Subject: [PATCH] `cargo clippy +nightly --fix` run on downstream node template
 (#14693)

---
 substrate/bin/node-template/pallets/template/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/substrate/bin/node-template/pallets/template/src/lib.rs b/substrate/bin/node-template/pallets/template/src/lib.rs
index 9550d3d546c..edf7769bab7 100644
--- a/substrate/bin/node-template/pallets/template/src/lib.rs
+++ b/substrate/bin/node-template/pallets/template/src/lib.rs
@@ -94,7 +94,7 @@ pub mod pallet {
 			// Read a value from storage.
 			match <Something<T>>::get() {
 				// Return an error if the value has not been set.
-				None => return Err(Error::<T>::NoneValue.into()),
+				None => Err(Error::<T>::NoneValue.into()),
 				Some(old) => {
 					// Increment the value read from storage; will error in the event of overflow.
 					let new = old.checked_add(1).ok_or(Error::<T>::StorageOverflow)?;
-- 
GitLab