Skip to content

Commit

Permalink
style: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
coston committed Jun 11, 2020
1 parent f03c87b commit 476ff37
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/obfuscate.js
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import T from 'prop-types';

const Obfuscate = props => {
const Obfuscate = (props) => {
const {
element,
children,
Expand All @@ -27,9 +27,9 @@ const Obfuscate = props => {
let link;

// Combine email header parameters for use with email
const combineHeaders = params => {
const combineHeaders = (params) => {
return Object.keys(params)
.map(key => `${key}=${encodeURIComponent(params[key])}`)
.map((key) => `${key}=${encodeURIComponent(params[key])}`)
.join('&');
};

Expand Down Expand Up @@ -77,14 +77,9 @@ const Obfuscate = props => {
}
};

const reverse = content =>
const reverse = (content) =>
typeof content !== 'undefined' &&
content
.split('')
.reverse()
.join('')
.replace('(', ')')
.replace(')', '(');
content.split('').reverse().join('').replace('(', ')').replace(')', '(');

const obfuscatedStyle = {
...style,
Expand Down

0 comments on commit 476ff37

Please sign in to comment.