Skip to content

Commit

Permalink
Add isSuccessful() method to all BintrayResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
shikloshi committed Aug 18, 2015
1 parent d32b8a6 commit be88623
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ public class EmptyBintrayResponse extends BintrayResponse {

private int status;

public EmptyBintrayResponse(int status){
public EmptyBintrayResponse(int status) {
this.status = status;
}

@Override
public String toString(){
public String toString() {
return "\nStatus Code: " + status + "\nView Artifactory logs for more details.\n";
}

@Override
public boolean isSuccessful() {
return false;
}
}

0 comments on commit be88623

Please sign in to comment.