Skip to content

Commit 0d84cf8

Browse files
committed
[ci] Run format
[skip ci] Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 16e9d6b commit 0d84cf8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Rakefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,11 +1191,11 @@ end
11911191

11921192
def update_changelog(version, language, path, changelog, header)
11931193
tag = previous_tag(version, language)
1194-
if language == 'javascript'
1195-
log = `git --no-pager log #{tag}...HEAD --pretty=format:"- %s" --reverse #{path}`
1196-
else
1197-
log = `git --no-pager log #{tag}...HEAD --pretty=format:"* %s" --reverse #{path}`
1198-
end
1194+
log = if language == 'javascript'
1195+
`git --no-pager log #{tag}...HEAD --pretty=format:"- %s" --reverse #{path}`
1196+
else
1197+
`git --no-pager log #{tag}...HEAD --pretty=format:"* %s" --reverse #{path}`
1198+
end
11991199
commits = log.split('>>>').map { |entry|
12001200
lines = entry.split("\n")
12011201
lines.reject! { |line| line.match?(/^(----|Co-authored|Signed-off)/) || line.empty? }

0 commit comments

Comments
 (0)