about summary refs log tree commit diff
path: root/src/micropub/get.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/micropub/get.rs')
-rw-r--r--src/micropub/get.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/micropub/get.rs b/src/micropub/get.rs
index 525bf12..5db99f7 100644
--- a/src/micropub/get.rs
+++ b/src/micropub/get.rs
@@ -40,21 +40,21 @@ where
                 Ok(chans) => channels = chans,
                 Err(err) => return Ok(err.into())
             }
-            return Ok(Response::builder(200).body(json!(channels)).build())
+            Ok(Response::builder(200).body(json!(channels)).build())
         }
         "source" => {
             if user.check_scope("create") || user.check_scope("update") || user.check_scope("delete") || user.check_scope("undelete") {
                 if let Some(url) = query.url {
                     match backend.get_post(&url).await {
                         Ok(post) => if let Some(post) = post {
-                            return Ok(Response::builder(200).body(post).build())
+                            Ok(Response::builder(200).body(post).build())
                         } else {
-                            return Ok(Response::builder(404).build())
+                            Ok(Response::builder(404).build())
                         },
-                        Err(err) => return Ok(err.into())
+                        Err(err) => Ok(err.into())
                     }
                 } else {
-                    return Ok(Response::builder(400).body(json!({
+                    Ok(Response::builder(400).body(json!({
                         "error": "invalid_request",
                         "error_description": "Please provide `url`."
                     })).build())