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:
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user