mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Refactor Text.trimLines method to use arrow function with explicit return
This commit is contained in:
@@ -19,7 +19,9 @@ export default class Text {
|
||||
public static trimLines(text: string): string {
|
||||
return text
|
||||
.split('\n')
|
||||
.map((line: string) => line.trim())
|
||||
.map((line: string) => {
|
||||
return line.trim();
|
||||
})
|
||||
.join('\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user