Skip to content

Commit 144a80f

Browse files
committed
Removing home bug fixed.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 70f9556 commit 144a80f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/DelHomeCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ object DelHomeCommand : CommandBase(delHomeLiteral, false) {
3333
}?.let { user ->
3434
user.homes.asSequence().find {
3535
it.home == name
36-
}?.let {
37-
user.homes.removeIf { it.home == it.home }.also {
36+
}?.let { home ->
37+
user.homes.removeIf { it.home == home.home }.also {
3838
out("success", name).also { super.process(context) }
3939
}
4040
} ?: run { out("not_found", name) }

0 commit comments

Comments
 (0)