Skip to content

Commit

Permalink
refactor(#328): 상태 초기화 및 트리 갱신 함수 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
hegleB committed Mar 28, 2024
1 parent 35fc001 commit 737ca5a
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ class NodeView(
stopNodeMovement()
updateTreeIfNodeAttached(event)
}
attachedNode = null
lineView.updateTree(tree)
invalidate()
resetStateAndRefreshTree()
}
}
return false
Expand All @@ -92,6 +90,12 @@ class NodeView(
}
}

Check failure on line 92 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt#L92 <standard:no-trailing-spaces>

Trailing space(s)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt:92:1: error: Trailing space(s) (standard:no-trailing-spaces)
private fun resetStateAndRefreshTree() {

Check failure on line 93 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt#L93 <standard:blank-line-before-declaration>

Expected a blank line for this declaration
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt:93:5: error: Expected a blank line for this declaration (standard:blank-line-before-declaration)
attachedNode = null
lineView.updateTree(tree)
invalidate()
}

private fun attachNode(selectedNode: Node) {
attachedNode?.let { attachedNode ->
tree.doPreorderTraversal { node ->
Expand Down

0 comments on commit 737ca5a

Please sign in to comment.