mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
A whole bunch of whitespace linting - no functional changes
This commit is contained in:
@@ -76,7 +76,7 @@ module.exports = function(RED) {
|
||||
// Is it base64 encoded or binary?
|
||||
var attachmentString = attachment.toString();
|
||||
var attachmentBuffer = Buffer.from(attachmentString,'base64');
|
||||
if(attachmentString === attachmentBuffer.toString('base64')) {
|
||||
if (attachmentString === attachmentBuffer.toString('base64')) {
|
||||
// If converts back to same, then it was base64 so set to binary
|
||||
// https://stackoverflow.com/a/48770228
|
||||
attachment = attachmentBuffer;
|
||||
|
Reference in New Issue
Block a user