Linting #80

Merged
KevinMidboe merged 12 commits from linting into master 2018-02-07 13:24:43 +00:00
4 changed files with 104 additions and 108 deletions
Showing only changes of commit 74d143775b - Show all commits

View File

@@ -2,7 +2,6 @@ const User = require('src/user/user');
const jwt = require('jsonwebtoken');
class Token {
constructor(user) {
this.user = user;
}

View File

@@ -2,7 +2,6 @@ const assert = require('assert');
const establishedDatabase = require('src/database/database');
class UserRepository {
constructor(database) {
this.database = database || establishedDatabase;
this.queries = {
@@ -53,7 +52,6 @@ class UserRepository {
changePassword(user, password) {
return this.database.run(this.queries.change, [password, user.username]);
}
}
module.exports = UserRepository;

View File

@@ -2,7 +2,6 @@ const bcrypt = require('bcrypt-nodejs');
const UserRepository = require('src/user/userRepository');
class UserSecurity {
constructor(database) {
this.userRepository = new UserRepository(database);
}