@@ -29,8 +29,6 @@ import { getFirstCompletedRemoteData, getFirstSucceededRemoteDataPayload } from
2929import { RootDataService } from '../data/root-data.service' ;
3030import { getBitstreamDownloadRoute } from '../../app-routing-paths' ;
3131import { BundleDataService } from '../data/bundle-data.service' ;
32- import { followLink } from '../../shared/utils/follow-link-config.model' ;
33- import { Bundle } from '../shared/bundle.model' ;
3432import { PaginatedList } from '../data/paginated-list.model' ;
3533import { URLCombiner } from '../url-combiner/url-combiner' ;
3634import { HardRedirectService } from '../services/hard-redirect.service' ;
@@ -465,7 +463,7 @@ export class MetadataService {
465463 * @param item
466464 * @private
467465 */
468- private getBitstreamFromThumbnail ( item : Item ) : Observable < Bitstream > {
466+ private getBitstreamFromThumbnail ( item : Item ) : Observable < Bitstream > {
469467 return item . thumbnail . pipe (
470468 getFirstCompletedRemoteData ( ) ,
471469 map ( ( thumbnailRD ) => {
@@ -477,7 +475,7 @@ export class MetadataService {
477475 } ) ,
478476 filter ( data => ! ! data ) ,
479477 getDownloadableBitstream ( this . authorizationService ) ,
480- )
478+ ) ;
481479 }
482480
483481 private setPrimaryBitstreamInBundleTag ( tag : string ) : void {
@@ -486,9 +484,9 @@ export class MetadataService {
486484 this . getBitstreamFromThumbnail ( item ) . pipe (
487485 switchMap ( ( bitstream ) => {
488486 if ( hasValue ( bitstream ) ) {
489- return [ getBitstreamDownloadRoute ( bitstream ) ]
487+ return [ getBitstreamDownloadRoute ( bitstream ) ] ;
490488 } else {
491- return null
489+ return null ;
492490 }
493491 } ) ,
494492 filter ( data => ! ! data ) ,
0 commit comments