goModules: fix go.formatTool prompt

Change-Id: I5ea71ad3dc11b3951ed8d5e0483266c7431bdd4d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/238877
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/src/goModules.ts b/src/goModules.ts
index 6b4cbcf..2a41455 100644
--- a/src/goModules.ts
+++ b/src/goModules.ts
@@ -80,10 +80,11 @@
 			const promptMsg =
 				'For better performance using Go modules, you can try the experimental Go language server, gopls.';
 			promptToUpdateToolForModules('gopls', promptMsg, goConfig);
-		}
-		if (goConfig['formatTool'] === 'goreturns') {
-			const promptMsgForFormatTool = `The goreturns tool does not support Go modules. Please update the "formatTool" setting to goimports.`;
-			promptToUpdateToolForModules('switchFormatToolToGoimports', promptMsgForFormatTool, goConfig);
+
+			if (goConfig['formatTool'] === 'goreturns') {
+				const promptMsgForFormatTool = `The goreturns tool does not support Go modules. Please update the "formatTool" setting to goimports.`;
+				promptToUpdateToolForModules('switchFormatToolToGoimports', promptMsgForFormatTool, goConfig);
+			}
 		}
 	}
 	packagePathToGoModPathMap[pkgPath] = goModEnvResult;