mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-01-03 18:08:57 +01:00
dedup link check
This commit is contained in:
@@ -153,17 +153,7 @@ public class Requirement extends JSONElement {
|
||||
|
||||
@Override
|
||||
public void link() {
|
||||
if (this.state == State.created || this.state == State.modified || this.state == State.saved) {
|
||||
//This type of state is unrelated to parsing/linking.
|
||||
return;
|
||||
}
|
||||
if (this.state == State.init) {
|
||||
//Not parsed yet.
|
||||
this.parse();
|
||||
} else if (this.state == State.linked) {
|
||||
//Already linked.
|
||||
return;
|
||||
}
|
||||
if (!this.needsToBeLinked()) return;
|
||||
Project proj = getProject();
|
||||
if (proj == null) {
|
||||
Notification.addError("Error linking requirement "+getDesc()+". No parent project found.");
|
||||
|
||||
Reference in New Issue
Block a user