remove needless checks around source map logic