Minor modification on Retention API, make it Nonnull (#1416)

This commit is contained in:
Yi (Alan) Wang 2018-09-26 14:18:32 -07:00 committed by GitHub
parent afca8738ef
commit eb6b97c942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -175,7 +175,7 @@ public class DatasetComplianceDao extends BaseDao {
throw new UnsupportedOperationException("Not implemented yet"); throw new UnsupportedOperationException("Not implemented yet");
} }
@Nullable @Nonnull
public DatasetRetention getDatasetRetention(@Nonnull String datasetUrn) throws Exception { public DatasetRetention getDatasetRetention(@Nonnull String datasetUrn) throws Exception {
throw new UnsupportedOperationException("Not implemented yet"); throw new UnsupportedOperationException("Not implemented yet");
} }

View File

@ -435,9 +435,6 @@ public class Dataset extends Controller {
return Promise.promise(() -> internalServerError(errorResponse(e))); 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)))); return Promise.promise(() -> ok(Json.newObject().set("retentionPolicy", Json.toJson(record))));
} }