Skip to content

Commit

Permalink
Fix typo in split string length check (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Zhiling authored and khorshuheng committed Feb 14, 2020
1 parent b9ea64f commit 1ecdf91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/java/src/main/java/com/gojek/feast/RequestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static List<FeatureReference> createFeatureRefs(
"Feature id '%s' contains invalid version. Expected format: <project>/<feature-name>:<feature-version>.",
featureRefString));
}
} else if (projectSplit.length == 1) {
} else if (featureSplit.length == 1) {
name = featureSplit[0];
} else {
throw new IllegalArgumentException(
Expand Down
3 changes: 1 addition & 2 deletions sdk/java/src/test/java/com/gojek/feast/RequestUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static Stream<Arguments> provideValidFeatureIds() {
Arrays.asList(
"driver_project/driver_id:1",
"driver_project/driver_name:1",
"booking_project/driver_name:1"),
"booking_project/driver_name"),
Arrays.asList(
FeatureReference.newBuilder()
.setProject("driver_project")
Expand All @@ -74,7 +74,6 @@ private static Stream<Arguments> provideValidFeatureIds() {
.build(),
FeatureReference.newBuilder()
.setProject("booking_project")
.setVersion(1)
.setName("driver_name")
.build())));
}
Expand Down

0 comments on commit 1ecdf91

Please sign in to comment.