[Module] Fixes Issue #366

Removes the old if/else logic for getting the result line and format and replaces it with simpler code that matches the documentation