Skip to content

Commit

Permalink
chore: remove repetitive words in comments
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoxiangxianzi <zhaoyizheng@outlook.com>
  • Loading branch information
xiaoxiangxianzi authored and andydotxyz committed Mar 27, 2024
1 parent 3e96237 commit 6b2c99e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/app/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (l *Lifecycle) SetOnStoppedHookExecuted(f func()) {
l.onStoppedHookExecuted = f
}

// SetOnEnteredForeground hooks into the the app becoming foreground.
// SetOnEnteredForeground hooks into the app becoming foreground.
func (l *Lifecycle) SetOnEnteredForeground(f func()) {
l.onForeground.Store(f)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cache/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func destroyExpiredRenderers(now time.Time) {
}

// matchesACanvas returns true if the canvas represented by the canvasInfo object matches one of
// the canvases passed in in 'canvases', otherwise false is returned.
// the canvases passed in 'canvases', otherwise false is returned.
func matchesACanvas(cinfo *canvasInfo, canvases []fyne.Canvas) bool {
canvas := cinfo.canvas

Expand Down
2 changes: 1 addition & 1 deletion internal/repository/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func constructURI(u fyne.URI) string {
return uri
}

// Exists checks whether the the resource at u returns a
// Exists checks whether the resource at u returns a
// non "404 NOT FOUND" response header.
//
// Implements: repository.Repository
Expand Down
2 changes: 1 addition & 1 deletion storage/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type FileFilter interface {
Matches(fyne.URI) bool
}

// ExtensionFileFilter represents a file filter based on the the ending of file names,
// ExtensionFileFilter represents a file filter based on the ending of file names,
// for example ".txt" and ".png".
type ExtensionFileFilter struct {
Extensions []string
Expand Down
2 changes: 1 addition & 1 deletion theme/icons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestThemedResource_Content_GroupPolygonsFile(t *testing.T) {
assert.NotEqual(t, staticResource.Content(), themedResource.Content())
}

// a black svg object omits the fill tag, this checks it it still properly updated
// a black svg object omits the fill tag, this checks if it still properly updated
func TestThemedResource_Content_BlackFillIsUpdated(t *testing.T) {
fyne.CurrentApp().Settings().SetTheme(DarkTheme())
staticResource := helperLoadRes(t, "cancel_PathsBlackFill.svg")
Expand Down
2 changes: 1 addition & 1 deletion widget/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *Check) Bind(data binding.Bool) {
}
}

// SetChecked sets the the checked state and refreshes widget
// SetChecked sets the checked state and refreshes widget
func (c *Check) SetChecked(checked bool) {
if checked == c.Checked {
return
Expand Down

0 comments on commit 6b2c99e

Please sign in to comment.