Skip to content

Commit 6614f10

Browse files
committed
refactoring
1 parent ec1a151 commit 6614f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

behavioral-patterns/chain-of-responsibility/supporter.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ export class Supporter {
5252
// Trouble was supported.
5353
supported(trouble) {
5454
// ˅
55-
console.log(trouble.toString() + " was handled by " + this.name + ".");
55+
console.log(`${trouble.toString()} was handled by ${this.name}.`);
5656
// ˄
5757
}
5858

5959
// Trouble was unsupported.
6060
unsupported(trouble) {
6161
// ˅
62-
console.log(trouble.toString() + " was not handled.");
62+
console.log(`${trouble.toString()} was not handled.`);
6363
// ˄
6464
}
6565

0 commit comments

Comments
 (0)