mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-10 00:08:29 +01:00
move obfuscate parse nearer to where err is checked
This commit is contained in:
parent
203d2b79a3
commit
7233c4d768
@ -581,10 +581,10 @@ func (s *Subscriptions) permsFromCSV(
|
||||
}
|
||||
|
||||
var (
|
||||
domainRaw = record[0]
|
||||
severity = record[1]
|
||||
publicComment = record[4]
|
||||
obfuscate, err = strconv.ParseBool(record[5])
|
||||
domainRaw = record[0]
|
||||
severity = record[1]
|
||||
publicComment = record[4]
|
||||
obfuscateStr = record[5]
|
||||
)
|
||||
|
||||
if severity != "suspend" {
|
||||
@ -592,6 +592,7 @@ func (s *Subscriptions) permsFromCSV(
|
||||
continue
|
||||
}
|
||||
|
||||
obfuscate, err := strconv.ParseBool(obfuscateStr)
|
||||
if err != nil {
|
||||
l.Warnf("couldn't parse obfuscate field of record: %+v", record)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user