Remove unnecessary "if" condition

Hat tip briandoll
This commit is contained in:
probablycorey 2013-10-21 20:14:25 -07:00
parent d16fb6fc8f
commit 35ff4b8677

View File

@ -246,7 +246,7 @@ class AtomApplication
[basename, initialLine] = path.basename(pathToOpen).split(':')
if initialLine
pathToOpen = "#{path.dirname(pathToOpen)}/#{basename}"
initialLine -= 1 if initialLine # Convert line numbers to a base of 0
initialLine -= 1 # Convert line numbers to a base of 0
unless devMode
existingWindow = @windowForPath(pathToOpen) unless pidToKillWhenClosed or newWindow