From 966704a812fd852abce532436657fcdd08de04fb Mon Sep 17 00:00:00 2001 From: T-256 <132141463+T-256@users.noreply.github.com> Date: Fri, 3 Nov 2023 08:33:12 +0330 Subject: [PATCH] fmt --- .../ruff_linter/src/rules/pydocstyle/rules/triple_quotes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/pydocstyle/rules/triple_quotes.rs b/crates/ruff_linter/src/rules/pydocstyle/rules/triple_quotes.rs index 8ff1348f0809f7..d9db36f397799a 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/rules/triple_quotes.rs +++ b/crates/ruff_linter/src/rules/pydocstyle/rules/triple_quotes.rs @@ -66,7 +66,9 @@ pub(crate) fn triple_quotes(checker: &mut Checker, docstring: &Docstring) { .to_owned(); let expected_quote = if docstring.body().contains("\"\"\"") { - if docstring.body().contains("\'\'\'") { return } + if docstring.body().contains("\'\'\'") { + return; + } Quote::Single } else { Quote::Double