Skip to content

Commit

Permalink
Fix incorrect ending dash with ExprRawName (#4193)
Browse files Browse the repository at this point in the history
  • Loading branch information
APickledWalrus authored Aug 7, 2021
1 parent 38bd37e commit d6dc3db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ch/njol/skript/aliases/AliasesProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public int getInsertPoint() {

@Nullable
public String insertId(@Nullable String inserted) {
if (id == null) // Inserting to nothing
return inserted;
if (inserted == null)
if (inserted == null) // Nothing to insert
return id;
inserted = inserted.substring(0, inserted.length() - 1); // Strip out -
if (id == null) // Inserting to nothing
return inserted;

String id = this.id;
assert id != null;
Expand Down

0 comments on commit d6dc3db

Please sign in to comment.