Answer:
McGinty decided to kill James because James was unveiling the truth about the existence of scrowers.
Below is an excerpt that reveals that:
" Boys," said he, " there's one man in this town that wants trimming up, and it's you to see that he gets it'. I'm speaking of James Stanger, of the Herald. You've seen how he's been opening his mouth against us again?"
...."Kill him ! " cried a dozen fierce voices.
Explanation:
When McGinty, the bodymaster picked up the paper James Stranger wrote about his gang, he read it out to his gang. Then he asked them what should be done to James for writing such against them. They exclaimed that he should be killed.
So, they took the decision to kill him.
"The Valley Of Fear" is one of the stories of Sherlock Holmes written by Conan Doyle.