Cleaned up local variables

* Remove duplicated checking variable `module` 
* Removed unused argument `exports`