mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
Misc small changes for code quality.
This commit is contained in:
parent
ada50c429a
commit
4dd67df1dd
8 changed files with 17 additions and 17 deletions
|
@ -37,7 +37,7 @@ namespace GreenshotConfluencePlugin {
|
|||
Regex pageIdRegex = new Regex(@"pageId=(\d+)");
|
||||
Regex spacePageRegex = new Regex(@"\/display\/([^\/]+)\/([^#]+)");
|
||||
foreach(string browserurl in GetBrowserUrls()) {
|
||||
string url = null;
|
||||
string url;
|
||||
try {
|
||||
url = Uri.UnescapeDataString(browserurl).Replace("+", " ");
|
||||
} catch {
|
||||
|
|
|
@ -66,10 +66,11 @@ namespace GreenshotConfluencePlugin {
|
|||
string displayKey = GetDisplayKeyValue(a);
|
||||
object enumValue = field.GetValue(null);
|
||||
|
||||
string displayString = null;
|
||||
string displayString;
|
||||
if (displayKey != null && Language.hasKey(displayKey)) {
|
||||
displayString = Language.GetString(displayKey);
|
||||
} if (displayKey != null) {
|
||||
}
|
||||
if (displayKey != null) {
|
||||
displayString = displayKey;
|
||||
} else {
|
||||
displayString = enumValue.ToString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue