Skip to content

Commit a0f9bfb

Browse files
committed
Code style fixes
1 parent cea0331 commit a0f9bfb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/account.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = function(db) {
4242
},
4343
set: function(type) {
4444
if (type >= 1 && type <= 5) {
45-
this._type = type
45+
this._type = type;
4646
} else {
4747
throw new Error('Account type must be between 1 and 5');
4848
}
@@ -107,8 +107,6 @@ module.exports = function(db) {
107107
};
108108

109109
Account.find = function(properties, callback) {
110-
var self = this;
111-
112110
if (typeof(properties) === 'number') {
113111
properties = {id: properties};
114112
} else if (typeof(properties) === 'string') {

src/database.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ module.exports = function(host, user, password, database) {
1010
password: password,
1111
database: database,
1212
queryFormat: function(query, values) {
13-
if (!values) return query;
13+
if (!values) {
14+
return query;
15+
}
1416
return query.replace(/\:(\w+)/g, function(txt, key) {
1517
if (values.hasOwnProperty(key)) {
1618
return this.escape(values[key]);

0 commit comments

Comments
 (0)