Skip to content

Commit

Permalink
Merge pull request #725 from m-tmatma/feature/fix-remove-redundant
Browse files Browse the repository at this point in the history
冗長な空行を削除するスクリプトのバグを修正
  • Loading branch information
m-tmatma authored Dec 26, 2018
2 parents aab76a5 + 448609b commit c16eb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remove-redundant-blank-lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def removeRedundantBlack(fileName):
# prevLines[-1] leftBracket {
# 現在の行 blankLine <空行>
if prevLines[-1]['type'] == leftBracket:
if type == blankLine:
if lineType == blankLine:
continue

# 現在の行も前の行も空行の場合、現在の行を捨てる
Expand Down

0 comments on commit c16eb52

Please sign in to comment.