Skip to content

Commit 87a506c

Browse files
committed
code_style: remove unnecessary code
Signed-off-by: leo <longshuang@msn.cn>
1 parent 6f670b1 commit 87a506c

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

src/Native/Linux.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,7 @@ public string GetDataDir()
4848

4949
// Runtime data dir: ~/.sourcegit
5050
var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
51-
var dataDir = Path.Combine(home, ".sourcegit");
52-
if (Directory.Exists(dataDir))
53-
return dataDir;
54-
55-
// Migrate old data: ~/.config/SourceGit
56-
var oldDataDir = Path.Combine(home, ".config", "SourceGit");
57-
if (Directory.Exists(oldDataDir))
58-
{
59-
try
60-
{
61-
Directory.Move(oldDataDir, dataDir);
62-
}
63-
catch
64-
{
65-
// Ignore errors
66-
}
67-
}
68-
69-
return dataDir;
51+
return Path.Combine(home, ".sourcegit");
7052
}
7153

7254
public string FindGitExecutable()

0 commit comments

Comments
 (0)