Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 27, 2017
1 parent 9048acd commit 2b99144
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
'use strict'

var fs = require('fs')
var promise = require('cb2promise')

function isString (str) {
return typeof str === 'string'
}
const fs = require('fs')
const promise = require('cb2promise')
const isString = (str) => typeof str === 'string'

function existeFile (filepath, cb) {
if (!isString(filepath)) {
Expand Down

0 comments on commit 2b99144

Please sign in to comment.