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:
Samer Albahra
2015-07-03 01:10:59 -05:00
parent 69d4c9ca4d
commit 687e3c6ca7

View File

@@ -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();
}
*/
} )();