Skip to content

Remove redundant semicolons after onScriptComplete function #16346

@ahaoboy

Description

@ahaoboy

Bug report

Remove redundant semicolons after onScriptComplete function.

What is the current behavior?

/******/ 			var onScriptComplete = function(prev, event) {
/******/ 				// avoid mem leaks in IE.
/******/ 				script.onerror = script.onload = null;
/******/ 				clearTimeout(timeout);
/******/ 				var doneFns = inProgress[url];
/******/ 				delete inProgress[url];
/******/ 				script.parentNode && script.parentNode.removeChild(script);
/******/ 				doneFns && doneFns.forEach(function(fn) { return fn(event); });
/******/ 				if(prev) return prev(event);
/******/ 			}
/******/ 			;
/******/ 			var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000); 

If the current behavior is a bug, please provide the steps to reproduce.
The semicolon is redundant because there is a newline in front.

What is the expected behavior?
The redundant semicolons should be removed.

Other relevant information:
webpack version: 5.74.0
Node.js version: v18.9.0
Operating System: macos
Additional tools:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions