Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Jan 20, 2021
1 parent ecb21c0 commit f3d0763
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/spam_scans.moon
Expand Up @@ -122,6 +122,8 @@ class SpamScans extends Model
else
"default"

-- this returns an array of HTML chunks (so we can get domains out of the text)
-- when training as plain text, concat and extract the text first
@user_texts: (user) =>
if user._spam_scans_user_texts
return user._spam_scans_user_texts
Expand All @@ -139,7 +141,7 @@ class SpamScans extends Model

add_html = (html) ->
if html
table.insert texts, text
table.insert texts, html

profile = user\get_user_profile!

Expand Down

0 comments on commit f3d0763

Please sign in to comment.