Skip to content

Commit c1c83de

Browse files
abdul4samadJustin Poehnelt
andauthored
fix: #675 Changed return logic of DirectionsApi (#709)
* fix: #697 Changed expected error message in to ApiException * Update src/main/java/com/google/maps/errors/ApiException.java Co-authored-by: Justin Poehnelt <jpoehnelt@google.com> * fix: #675 Changed return logic of DirectionsApi Co-authored-by: Justin Poehnelt <jpoehnelt@google.com>
1 parent c3c0b5c commit c1c83de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/google/maps/DirectionsApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static class Response implements ApiResponse<DirectionsResult> {
7171

7272
@Override
7373
public boolean successful() {
74-
return "OK".equals(status) || "ZERO_RESULTS".equals(status);
74+
return "OK".equals(status);
7575
}
7676

7777
@Override

0 commit comments

Comments
 (0)