Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authormdh1418 <mitchhwang1418@gmail.com>2020-02-06 16:49:28 +0300
committerGitHub <noreply@github.com>2020-02-06 16:49:28 +0300
commit7936510ec3fa458c1bc179831fcfe6db65e57d2c (patch)
tree7031618a819e4dd02209bdf13a366206ab14a20a /mcs
parent6fe343db8c9e693d31ced914afffd7f4b831d64a (diff)
[corlib] Silence undocumented exceptions in ReadXdgUserDir (#18684)
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/System/Environment.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/mcs/class/corlib/System/Environment.cs b/mcs/class/corlib/System/Environment.cs
index fd936ab21a4..537ac2f3a06 100644
--- a/mcs/class/corlib/System/Environment.cs
+++ b/mcs/class/corlib/System/Environment.cs
@@ -612,8 +612,7 @@ namespace System {
}
}
}
- } catch (FileNotFoundException) {
- }
+ } catch {}
return Path.Combine (home_dir, fallback);
}