Skip to content

Commit

Permalink
style: let -> const pt. 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Lingen committed Jul 26, 2017
1 parent 43b0f59 commit da842df
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/enforcers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function toArray (value) {
return isArray(value) ? value : [value]
}

export let setup = osom({
export const setup = osom({
client: {
type: String,
default: 'sqlite3',
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function findKey (schema) {
let hasIncrements = false
for (const name in schema) {
if (!schema.hasOwnProperty(name)) continue
let props = schema[name]
const props = schema[name]
if (props === 'increments' || props.type === 'increments') {
key = name
hasIncrements = true
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Trilogy {
return false
}

let query = this.knex.schema.hasTable(name)
const query = this.knex.schema.hasTable(name)
return runQuery(this, query, true)
}

Expand Down
2 changes: 1 addition & 1 deletion src/sqljs-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function readDatabase (instance) {

try {
makeDirPath(dirname(filename))
let file = readFileSync(filename)
const file = readFileSync(filename)
client = new SQL.Database(file)
} catch (e) {
if (e.code === 'ENOENT') {
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function isOneOf (array, value) {
return array.some(v => v === value)
}

export let isType = (value, kind) => {
export const isType = (value, kind) => {
if (!kind) return type(value)
return type(value) === kind.toLowerCase()
}
Expand Down

0 comments on commit da842df

Please sign in to comment.