mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 03:21:21 +00:00
Fixed unnecessary logging when document not found
This commit is contained in:
parent
faa7e679ca
commit
5f6fefa7a6
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class RethinkDBStore {
|
||||||
this.client.table('uploads').get(md5(key)).run((error, result) => {
|
this.client.table('uploads').get(md5(key)).run((error, result) => {
|
||||||
if (error || !result) {
|
if (error || !result) {
|
||||||
callback(false);
|
callback(false);
|
||||||
winston.error('failed to insert to table', error);
|
if (error) winston.error('failed to insert to table', error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
callback(result.data);
|
callback(result.data);
|
||||||
|
|
Loading…
Reference in a new issue