diff --git a/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala b/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala index cf594d5756..c9d9edc2b5 100644 --- a/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala +++ b/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala @@ -65,8 +65,7 @@ object Scalafmt { filename: String = defaultFilename ): Formatted.Result = { def getStyleByFile(style: ScalafmtConfig) = { - val isSbt = FileOps.isAmmonite(filename) || FileOps.isSbt(filename) || - FileOps.isMarkdown(filename) + val isSbt = FileOps.isSbt(filename) if (isSbt) style.forSbt else style } val styleTry =