Skip to content

Commit

Permalink
fix array methods to match es6
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamaha32088 committed Jun 13, 2018
1 parent 0d36fe7 commit 7ee5bdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.number
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Mon Jun 11 15:42:43 CDT 2018
build.number=14
#Wed Jun 13 13:59:59 CDT 2018
build.number=15
4 changes: 2 additions & 2 deletions source/java/src/com/squidfoundry/array/ArrayPop.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public class ArrayPop extends BIF implements Function {
private static final long serialVersionUID = 849213838350625616L;

public static Object call(Array arrayToPop) throws PageException {
if(arrayToPop.size() > 1) {
if(arrayToPop.size() > 0) {
return arrayToPop.removeE(arrayToPop.size());
}
return arrayToPop;
return null;
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion source/java/src/com/squidfoundry/array/ArrayShift.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static Object call(Array arrayToShift) throws PageException {
if(arrayToShift.size() > 0) {
return arrayToShift.removeE(1);
}
return arrayToShift;
return null;
}

@Override
Expand Down

0 comments on commit 7ee5bdc

Please sign in to comment.