Tweak code to eliminate pylint warning
Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
This commit is contained in:
parent
eb3631d839
commit
6bb9c5d3c7
|
@ -1339,7 +1339,6 @@ def find_column(text, position):
|
||||||
newline = string.rfind(text, "\n", 0, position)
|
newline = string.rfind(text, "\n", 0, position)
|
||||||
if newline == -1:
|
if newline == -1:
|
||||||
return position + 1
|
return position + 1
|
||||||
else:
|
|
||||||
return position - newline
|
return position - newline
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue