small change
This commit is contained in:
@ -19,12 +19,7 @@ namespace NAMESPACEPLACEHOLDER.Client {
|
||||
}
|
||||
|
||||
public static ExceptionFactory ExtExceptionFactory = (methodName, response) => {
|
||||
var status = (int) response.StatusCode;
|
||||
if (status >= 400) {
|
||||
var ero = JsonConvert.DeserializeObject<ErrorResultObject>(response.RawContent);
|
||||
return new ExtApiException(ero);
|
||||
}
|
||||
return null;
|
||||
return (((int)response.StatusCode) >= 400) ? new ExtApiException(JsonConvert.DeserializeObject<ErrorResultObject>(response.RawContent)) : null;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user