Skip to content

Commit

Permalink
misc: remove an extra empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Aug 31, 2023
1 parent 3cdee17 commit 430a246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func UpdateSolutionCode(q *leetcode.QuestionData, newCode string) error {
skip := false
for _, line := range lines {
if strings.Contains(line, constants.CodeBeginMarker) {
newLines = append(newLines, line, "\n")
newLines = append(newLines, line+"\n")
newLines = append(newLines, newCode)
skip = true
} else if strings.Contains(line, constants.CodeEndMarker) {
Expand Down

0 comments on commit 430a246

Please sign in to comment.