Skip to content

Commit 75dfb62

Browse files
committed
update GitHub issue url constant variable and method names
1 parent 0b4d685 commit 75dfb62

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Flow.Launcher.Infrastructure/Constant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static class Constant
1919
public static readonly string RootDirectory = Directory.GetParent(ApplicationDirectory).ToString();
2020

2121
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
22-
public const string Issue = "https://github.com/Flow-Launcher/Flow.Launcher/issues";
22+
public const string IssuesUrl = "https://github.com/Flow-Launcher/Flow.Launcher/issues";
2323
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
2424
public static readonly string Dev = "Dev";
2525
public const string Documentation = "https://flowlauncher.com/docs/#/usage-tips";

Flow.Launcher/ReportWindow.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public ReportWindow(Exception exception)
2323
SetException(exception);
2424
}
2525

26-
private static string GetIssueUrl(string website)
26+
private static string GetIssuesUrl(string website)
2727
{
2828
if (!website.StartsWith("https://github.com"))
2929
{
3030
return website;
3131
}
3232
if(website.Contains("Flow-Launcher/Flow.Launcher"))
3333
{
34-
return Constant.Issue;
34+
return Constant.IssuesUrl;
3535
}
3636
var treeIndex = website.IndexOf("tree", StringComparison.Ordinal);
3737
return treeIndex == -1 ? $"{website}/issues" : $"{website[..treeIndex]}/issues";
@@ -45,8 +45,8 @@ private void SetException(Exception exception)
4545

4646
var websiteUrl = exception switch
4747
{
48-
FlowPluginException pluginException =>GetIssueUrl(pluginException.Metadata.Website),
49-
_ => Constant.Issue
48+
FlowPluginException pluginException =>GetIssuesUrl(pluginException.Metadata.Website),
49+
_ => Constant.IssuesUrl
5050
};
5151

5252

0 commit comments

Comments
 (0)