Remove unnecessary IIFE
https://stackoverflow.com/questions/21531329/are-node-js-modules-need-to -be-wrapped-inside-the-module-pattern
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
( function() {
|
||||
|
||||
var http = require( "http" ),
|
||||
// parseXML = require( "xml2js" ).parseString,
|
||||
Cache = require( "../models/Cache" ),
|
||||
@@ -118,6 +116,7 @@
|
||||
} );
|
||||
}
|
||||
*/
|
||||
|
||||
// Update weather cache record in the local database
|
||||
function updateCache( location, weather ) {
|
||||
|
||||
@@ -424,4 +423,3 @@
|
||||
return ( date.getMonth() + 1 ) + "/" + date.getDate() + "/" + date.getFullYear();
|
||||
}
|
||||
*/
|
||||
} )();
|
||||
|
||||
Reference in New Issue
Block a user