File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
engine/src/main/java/com/github/s4ke/moar/moa/edgegraph Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ public enum ActionType {
32
32
OPEN {
33
33
@ Override
34
34
public void act (String variableName , Variable val ) {
35
- if ( !val .isOpen () ) {
36
- val .open ();
37
- }
35
+ val .open ();
38
36
}
39
37
40
38
@ Override
@@ -45,9 +43,7 @@ public String toString(String variableName) {
45
43
CLOSE {
46
44
@ Override
47
45
public void act (String variableName , Variable val ) {
48
- if ( val .isOpen () ) {
49
- val .close ();
50
- }
46
+ val .close ();
51
47
}
52
48
53
49
@ Override
@@ -58,9 +54,8 @@ public String toString(String variableName) {
58
54
RESET {
59
55
@ Override
60
56
public void act (String variableName , Variable val ) {
61
- if ( val .isOpen () ) {
62
- val .contents .reset ();
63
- }
57
+ val .close ();
58
+ val .contents .reset ();
64
59
}
65
60
66
61
@ Override
You can’t perform that action at this time.
0 commit comments