Skip to content

Commit 545a433

Browse files
Make use of unused filename literal
1 parent 873d145 commit 545a433

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FSharpLint.Core/Application/Configuration.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ let loadConfig (configPath:string) =
596596
let defaultConfiguration =
597597
let assembly = typeof<Rules.Rule>.GetTypeInfo().Assembly
598598
let resourceName = Assembly.GetExecutingAssembly().GetManifestResourceNames()
599-
|> Seq.find (fun n -> n.EndsWith("fsharplint.json", System.StringComparison.Ordinal))
599+
|> Seq.find (fun n -> n.EndsWith(SettingsFileName, System.StringComparison.Ordinal))
600600
use stream = assembly.GetManifestResourceStream(resourceName)
601601
match stream with
602602
| null -> failwithf "Resource '%s' not found in assembly '%s'" resourceName (assembly.FullName)

src/FSharpLint.Core/Application/Lint.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ module Lint =
383383
| ex -> Error (string ex)
384384
| Default ->
385385
try
386-
Configuration.loadConfig "./fsharplint.json"
386+
Configuration.loadConfig $"./{Configuration.SettingsFileName}"
387387
|> Ok
388388
with
389389
| :? System.IO.FileNotFoundException ->

0 commit comments

Comments
 (0)