Skip to content

Fixed malformed formatting when newline present after return token#639

Merged
JohnnyMorganz merged 5 commits intomainfrom
return-newline-after-token
Jan 12, 2023
Merged

Fixed malformed formatting when newline present after return token#639
JohnnyMorganz merged 5 commits intomainfrom
return-newline-after-token

Conversation

@JohnnyMorganz
Copy link
Copy Markdown
Owner

Fixes #605

@JohnnyMorganz JohnnyMorganz added this to the 0.16 milestone Jan 12, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 12, 2023

Codecov Report

Base: 97.61% // Head: 97.61% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (fc77ce3) compared to base (9564b3f).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #639      +/-   ##
==========================================
- Coverage   97.61%   97.61%   -0.01%     
==========================================
  Files          14       14              
  Lines        5615     5614       -1     
==========================================
- Hits         5481     5480       -1     
  Misses        134      134              
Impacted Files Coverage Δ
src/formatters/block.rs 97.89% <100.00%> (-0.01%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Copy Markdown
Contributor

Repo Comparison Test

diff --git ORI/lit/deps/semver.lua ALT/lit/deps/semver.lua
index 718c542..a3a5d4e 100644
--- ORI/lit/deps/semver.lua
+++ ALT/lit/deps/semver.lua
@@ -24,8 +24,7 @@ function parse(version)
 	if not tonumber(string.match(version, "^v?(%d+)")) then
 		error("Invalid version value: " .. version)
 	end
-	return
-		tonumber(string.match(version, "^v?(%d+)")),
+	return tonumber(string.match(version, "^v?(%d+)")),
 		tonumber(string.match(version, "^v?%d+%.(%d+)") or 0),
 		tonumber(string.match(version, "^v?%d+%.%d+%.(%d+)") or 0),
 		tonumber(string.match(version, "^v?%d+%.%d+%.%d+-(%d+)") or 0)

@JohnnyMorganz JohnnyMorganz merged commit 540ecfb into main Jan 12, 2023
@JohnnyMorganz JohnnyMorganz deleted the return-newline-after-token branch January 12, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2-format required for inlining return statement

1 participant