import { Repository } from '../../common/types' ; /**
 * Utility to remove empty fields ("") from repository settings
 */ export const cleanSettings = ( settings ) => Object . entries ( settings ) . reduce ( ( acc , [ key , value ] ) => { if ( value !== '' ) { acc [ key ] = value ; } return acc ; } , { } ) ;