Skip to content

Commit

Permalink
♻️ Remove redundant code in hasWrappedInRFS
Browse files Browse the repository at this point in the history
  • Loading branch information
kghugo committed Aug 4, 2020
1 parent 55fb174 commit 3c0d892
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions utilities/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ const {
options
} = require('../index.js')

const hasWrappedInRFS = (decl) => {
if (/^rfs/g.test(decl.value)) {
return true
}
return false
}
const hasWrappedInRFS = (decl) => /^rfs/g.test(decl.value)

const isIncluded = (decl, inclusionRules) => {
if (inclusionRules.includes('*')) {
Expand Down

0 comments on commit 3c0d892

Please sign in to comment.