Skip to content

shardeum/sec_im_cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clean1.js:

  1. This script is focused on removing specific types of code:

    • Removes calls to specific logging/profiling functions like countEvent, countRareEvent, debug, info, etc.

    • Removes console.log statements

    • Removes empty lines and comments (while preserving ESLint comments)

  2. If these calls are inside if statements, it will clean up the conditional structure by removing the empty branches

Think of it as a "code cleaner" that removes debugging and profiling code from a production codebase.

clean2.js:

  1. This script focuses on simplifying conditional statements by removing unnecessary block syntax

  2. For example, it would transform:

if (condition) {

    doSomething();

}

into:

if (condition) doSomething();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published