lint
This commit is contained in:
parent
0517c76abf
commit
fb4aaad19f
@ -40,8 +40,8 @@ namespace PluralKit.Bot
|
|||||||
// Skip blank tags (shouldn't ever happen in practice)
|
// Skip blank tags (shouldn't ever happen in practice)
|
||||||
if (tag.Prefix == null && tag.Suffix == null) continue;
|
if (tag.Prefix == null && tag.Suffix == null) continue;
|
||||||
|
|
||||||
if(tag.Prefix == "<" && prefixPattern.IsMatch(input)) continue;
|
if (tag.Prefix == "<" && prefixPattern.IsMatch(input)) continue;
|
||||||
if(tag.Suffix == ">" && suffixPattern.IsMatch(input)) continue;
|
if (tag.Suffix == ">" && suffixPattern.IsMatch(input)) continue;
|
||||||
|
|
||||||
// Can we match with these tags?
|
// Can we match with these tags?
|
||||||
if (TryMatchTagsInner(input, tag, out result.Content))
|
if (TryMatchTagsInner(input, tag, out result.Content))
|
||||||
|
@ -46,7 +46,7 @@ namespace PluralKit.Core
|
|||||||
|
|
||||||
// Remove the old members from the switch
|
// Remove the old members from the switch
|
||||||
await conn.ExecuteAsync("delete from switch_members where switch = @Switch",
|
await conn.ExecuteAsync("delete from switch_members where switch = @Switch",
|
||||||
new {Switch = switchId});
|
new { Switch = switchId });
|
||||||
|
|
||||||
// Add the new members
|
// Add the new members
|
||||||
await using (var w = conn.BeginBinaryImport("copy switch_members (switch, member) from stdin (format binary)"))
|
await using (var w = conn.BeginBinaryImport("copy switch_members (switch, member) from stdin (format binary)"))
|
||||||
|
Loading…
Reference in New Issue
Block a user