Skip to content

Commit 4b4f6c0

Browse files
committed
Format code.
1 parent 8636f8f commit 4b4f6c0

6 files changed

Lines changed: 8 additions & 7 deletions

File tree

js-src/app/scripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ var jsSrcApp = angular.module('jsSrcApp', ['ngResource', '$strap', 'ui'])
5151
}, 3000);
5252
});
5353
}
54-
}
54+
};
5555
});

js-src/app/scripts/controllers/product-edit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jsSrcApp.controller(
1616
p.$save();
1717
}
1818
var scope = $scope;
19-
var myFlashh = flash;
20-
$scope.ignoreError = function() {
19+
20+
$scope.ignoreError = function() {
2121
$scope.hasError = false;
2222
};
2323
$scope.save = function() {

js-src/app/views/product.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
<td>{{product.created_at}}</td>
4545
</tr>
4646
</table>
47-
</div>
47+
</div>

js-src/mocks-data/mdb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ exports.DbMapper = function (db, collectionName) {
9191
});
9292
};
9393

94-
this.delete = function (req, res) {
94+
this.remove = function (req, res) {
9595
var id = req.params.id;
9696
db.collection(collectionName, function (err, collection) {
9797
collection.remove({'_id':new BSON.ObjectID(id)}, {safe:true}, function (err, result) {

js-src/mocks-data/product.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ exports.findById = dbMapper.findById;
2020
exports.findAll = dbMapper.findAll;
2121
exports.addProduct = dbMapper.add;
2222
exports.updateProduct = dbMapper.update;
23-
exports.deleteProduct = dbMapper.delete;
23+
exports.deleteProduct = dbMapper.remove;

js-src/restifyServer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
var express = require('express');
1+
var express;
2+
express = require('express');
23
var http = require('http');
34
var fs = require('fs');
45
var path = require('path');

0 commit comments

Comments
 (0)