mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-30 18:18:45 +03:00
Remove unnecessary "if" condition
Hat tip briandoll
This commit is contained in:
parent
d16fb6fc8f
commit
35ff4b8677
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user