1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-10-29 12:24:19 +01:00

Minor code formatting tweaks

This commit is contained in:
2018-04-07 03:46:10 +02:00
parent 4356dde92d
commit 342a4b4067
2 changed files with 2 additions and 8 deletions

@@ -11,12 +11,7 @@ namespace TweetDuck.Core.Management{
} }
public void SetLink(string type, string url){ public void SetLink(string type, string url){
if (string.IsNullOrEmpty(url)){ Link = string.IsNullOrEmpty(url) ? new LinkInfo() : new LinkInfo(type, url);
Link = new LinkInfo();
}
else{
Link = new LinkInfo(type, url);
}
} }
public void SetChirp(string tweetUrl, string quoteUrl, string chirpAuthors, string chirpImages){ public void SetChirp(string tweetUrl, string quoteUrl, string chirpAuthors, string chirpImages){

@@ -62,8 +62,7 @@ namespace TweetDuck.Data{
} }
public bool Contains(K1 outerKey, K2 innerKey){ public bool Contains(K1 outerKey, K2 innerKey){
Dictionary<K2, V> innerDict; return dict.TryGetValue(outerKey, out Dictionary<K2, V> innerDict) && innerDict.ContainsKey(innerKey);
return dict.TryGetValue(outerKey, out innerDict) && innerDict.ContainsKey(innerKey);
} }
public int Count(){ public int Count(){