Skip to content

Commit

Permalink
refactor: redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
meenahoda committed Aug 1, 2018
1 parent 973e702 commit 9e7df6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/components/state-resources/upload-file/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class UploadFile {
})
}

const str = event.base64
const encodedBase64String = str && str.replace(/^data:+[a-z]+\/+[a-z]+;base64,/, '')
const encodedBase64String = event.base64 && event.base64.replace(/^data:+[a-z]+\/+[a-z]+;base64,/, '')
const binaryData = encodedBase64String && new Buffer(encodedBase64String, 'base64')

debug(`Upserting file '${event.fileName}'`)
Expand Down

0 comments on commit 9e7df6d

Please sign in to comment.