mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-09 01:01:52 +00:00
Minor modification on Retention API, make it Nonnull (#1416)
This commit is contained in:
parent
afca8738ef
commit
eb6b97c942
@ -175,7 +175,7 @@ public class DatasetComplianceDao extends BaseDao {
|
||||
throw new UnsupportedOperationException("Not implemented yet");
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Nonnull
|
||||
public DatasetRetention getDatasetRetention(@Nonnull String datasetUrn) throws Exception {
|
||||
throw new UnsupportedOperationException("Not implemented yet");
|
||||
}
|
||||
|
@ -435,9 +435,6 @@ public class Dataset extends Controller {
|
||||
return Promise.promise(() -> internalServerError(errorResponse(e)));
|
||||
}
|
||||
|
||||
if (record == null) {
|
||||
return Promise.promise(() -> notFound(_EMPTY_RESPONSE));
|
||||
}
|
||||
return Promise.promise(() -> ok(Json.newObject().set("retentionPolicy", Json.toJson(record))));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user