Earlier in the season, when Andy considered taking a job in Raleigh, he suggests that the city council will choose his replacement. In this episode however, Barney has to run for the job and win the election. This makes entirely more sense since the position of county sheriff is always an elected position and it's unlikely that a city council would have any authority over a county sheriff.
Barney: Do you know what your sheriff has in the trunk of his car? A shovel and a rake!
Goober: Ain't you got a jack?
(Andy's considering a new job that might involve a move to South America)
Aunt Bee: Oh, my.
Aunt Bee: That's another thing I'm worried about if we should end up in South America: the food. They eat very strange things down there.
Opie: What do they eat, Pa?
Andy: Same things as we do: beans, meat, tomatoes. They have special dishes... uh, they got a thing called a "tortilla".
Opie: You mean they eat those great big spiders?
Andy: No, that's tarantula. Tortilla.
The basic plot line of this episode will be revisted over 20 years later in the TV movie Return to Mayberry. The speech in which Barney throws his support behind Andy is very similar in both shows.