Skip to content

Commit

Permalink
Expand comment describing IsQueueable
Browse files Browse the repository at this point in the history
Co-Authored-By: vbrown608 <vivian@eff.org>
  • Loading branch information
sydneyli and vbrown608 committed Feb 13, 2019
1 parent f544001 commit c91f676
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ type scanStore interface {
}

// IsQueueable returns true if a domain can be submitted for validation and
// queueing to the STARTTLS Everywhere Policy List.
// queueing to the STARTTLS Everywhere Policy List.
// A successful scan should already have been submitted for this domain,
// and it should not already be on the policy list.
// Returns (queuability, error message, and most recent scan)
func (d *Domain) IsQueueable(db scanStore, list policyList) (bool, string, Scan) {
scan, err := db.GetLatestScan(d.Name)
if err != nil {
Expand Down

0 comments on commit c91f676

Please sign in to comment.