I was much disconcerted, but I reflected that if the main point were gained, it mattered little how strangely he perverted everything leading to it. 
I was much disconcerted, but I reflected that if the main point were gained, it mattered little how. 