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:
parent
4356dde92d
commit
342a4b4067
@ -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){
|
||||
|
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user