Skip to content

Commit 8cd2133

Browse files
fix(codemod): do not mark the buildMessage method as private
It might fail because of the lack of support.
1 parent 6fb0807 commit 8cd2133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/codemods/src/v5/remove-overloads/utils/unknown-usage-error.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class UnknownUsageError extends Error {
44
*/
55
constructor(callExpression, filePath) {
66
super('')
7-
this.message = this.#buildMessage(callExpression, filePath)
7+
this.message = this.buildMessage(callExpression, filePath)
88
this.name = 'UnknownUsageError'
99
}
1010

@@ -14,7 +14,7 @@ class UnknownUsageError extends Error {
1414
* @param {string} filePath
1515
* @returns {string}
1616
*/
17-
#buildMessage(callExpression, filePath) {
17+
buildMessage(callExpression, filePath) {
1818
const location = callExpression.callee.loc
1919
const start = location.start.line
2020
const end = location.end.line

0 commit comments

Comments
 (0)