Skip to content

Commit d614784

Browse files
committed
clean up
1 parent 724701d commit d614784

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ gulp.task('release', function (callback) {
143143
});
144144
});
145145

146-
// ToDo: Add gulp-banner to add GNU GPL nitice on every js file.
146+
// ToDo: Add gulp-banner to add GNU GPL notice on every js file.

services/response/ok.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ module.exports = function(data, cache, extraData){
4848
}else{
4949
log.info('Sending ok response: ', response.response);
5050
if(data){
51-
// Only cache GET calls
52-
if(req.method === 'GET' && config.noFrontendCaching !== 'yes'){
51+
// Only cache GET calls
52+
if(req.method === 'GET' && config.noFrontendCaching !== 'yes'){
5353

5454
// If this is a cached response, show response else cache the response and show response.
5555
if(cache){
@@ -62,9 +62,9 @@ module.exports = function(data, cache, extraData){
6262
})
6363
.catch(function(err){
6464
log.error('Failed to cache data: ', err);
65-
// This error shouldn't stop our response
66-
res.status(200).json(response.response);
67-
});
65+
// This error shouldn't stop our response
66+
res.status(200).json(response.response);
67+
});
6868
}
6969
}else{
7070
res.status(200).json(response.response);

0 commit comments

Comments
 (0)