Skip to content

Commit 1a525b1

Browse files
author
Gusted
committed
Remove comments
1 parent 9b8c07d commit 1a525b1

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

cmd/docs.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ func runDocs(ctx *cli.Context) error {
4545
// https://github.com/urfave/cli/issues/1040
4646
firstHashtagIndex := strings.Index(docs, "#")
4747

48-
// Only replace docs, when firstHashtagIndex isn't -1,
49-
// as -1 shouldn't be passed into a slice.
5048
if firstHashtagIndex != -1 {
5149
docs = docs[firstHashtagIndex:]
5250
}

models/migrations/migrations.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,6 @@ func dropTableColumns(sess *xorm.Session, tableName string, columnNames ...strin
795795
// Get the index after the column definitions.
796796
endColumnsIndex := strings.Index(tableSQL, "(")
797797

798-
// If endColumnsIndex is -1, which shouldn't be passed
799-
// into a slice. We should return a error, as that also
800-
// means that the substring wasn't found.
801798
if endColumnsIndex == -1 {
802799
return errors.New("couldn't get index after column defintions")
803800
}

0 commit comments

Comments
 (0)