Remove defunct todo comment about swagger hub endpoint pagination headers.

This commit is contained in:
Jeff Stieler 2018-12-10 08:19:28 -07:00
parent d0066f0a60
commit a8247e8e7e
2 changed files with 0 additions and 2 deletions

View File

@ -53,7 +53,6 @@ function read( resourceNames, fetch = apiFetch ) {
try {
const response = await fetch( fetchArgs );
const report = await response.json();
// TODO: exclude these if using swagger?
const totalResults = parseInt( response.headers.get( 'x-wp-total' ) );
const totalPages = parseInt( response.headers.get( 'x-wp-totalpages' ) );

View File

@ -55,7 +55,6 @@ function read( resourceNames, fetch = apiFetch ) {
try {
const response = await fetch( fetchArgs );
const report = await response.json();
// TODO: exclude these if using swagger?
const totalResults = parseInt( response.headers.get( 'x-wp-total' ) );
const totalPages = parseInt( response.headers.get( 'x-wp-totalpages' ) );