Skip to content

Commit

Permalink
fix file perm, add skipcq
Browse files Browse the repository at this point in the history
  • Loading branch information
k2589 committed Oct 10, 2024
1 parent ce5d1b0 commit 5bcd637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/githuballrepos/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func NewCache(configPath string) *Cache {
// Ensure the cache directory exists
cacheDir := filepath.Dir(cache.configPath)
logger.Log(fmt.Sprintf("Cache directory: %s\n", cacheDir))
if err := os.MkdirAll(cacheDir, 0755); err != nil {
if err := os.MkdirAll(cacheDir, 0600); err != nil {
logger.Log(fmt.Sprintf("Error creating cache directory: %s\n", err))
}

Expand Down
1 change: 1 addition & 0 deletions modules/githuballrepos/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (widget *Widget) content() string {
}

func (widget *Widget) startCarousel() {
// skipcq: GOOO-E1007
go func() {
ticker := time.NewTicker(10 * time.Second)
defer ticker.Stop()
Expand Down

0 comments on commit 5bcd637

Please sign in to comment.