1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-24 06:15:48 +02:00

Minor code formatting tweaks

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

View File

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

View File

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