From b77ea04056765e530a0c0377e5a83c21272ad37f Mon Sep 17 00:00:00 2001 From: abe33 Date: Mon, 12 May 2014 00:06:01 +0200 Subject: [PATCH] :lipstick: Remove unnecessary double conditions --- src/selection.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selection.coffee b/src/selection.coffee index 04b5e8b45..00cae8b7c 100644 --- a/src/selection.coffee +++ b/src/selection.coffee @@ -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] }