You could change this line to `{text: clipboardText, metadata: metadata} = atom.clipboard.readWithMetadata()`. This would let you get rid of line 518.