mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
💄 Remove unnecessary double conditions
This commit is contained in:
@@ -514,7 +514,7 @@ class Selection extends Model
|
||||
if maintainClipboard
|
||||
{text: clipboardText, metadata} = atom.clipboard.readWithMetadata()
|
||||
|
||||
if metadata? and metadata.selections?
|
||||
if metadata?.selections?
|
||||
metadata.selections.push(text)
|
||||
else
|
||||
metadata = { selections: [clipboardText, text] }
|
||||
|
||||
Reference in New Issue
Block a user