diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs
index 9489baa7..f5f36aca 100644
--- a/helix-core/src/indent.rs
+++ b/helix-core/src/indent.rs
@@ -330,8 +330,7 @@ pub fn get_scopes(syntax: Option<&Syntax>, text: RopeSlice, pos: usize) -> Vec<&
     }
 
     scopes.reverse();
-
-    return scopes;
+    scopes
 }
 
 #[cfg(test)]