Skip to content

Commit 75bc34d

Browse files
authored
refactor: avoid unnecessary intermediate variable
Signed-off-by: Athan <[email protected]>
1 parent adbc303 commit 75bc34d

File tree

1 file changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/_tools/eslint/rules/tsdoc-declarations-doctest/lib

1 file changed

+1
-2
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/tsdoc-declarations-doctest/lib/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ function cleanTSDocComment( comment ) {
185185
var cleaned = replace( replace( comment, /^\/\*\*/, '' ), /\*\/$/, '' );
186186

187187
// Remove * at the beginning of lines
188-
cleaned = replace( cleaned, RE_COMMENT_PREFIX, '' );
189-
return cleaned;
188+
return replace( cleaned, RE_COMMENT_PREFIX, '' );
190189
}
191190

192191
/**

0 commit comments

Comments
 (0)