[PR #2494] Remove else statements from if/return blocks. #2462

Open
opened 2026-03-01 21:55:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2494
Author: @stephenwithav
Created: 10/19/2024
Status: 🔄 Open

Base: masterHead: code-cleanup


📝 Commits (4)

  • d28ad0e Remove else statements from if/return blocks.
  • 618e211 More if/return cleanup.
  • 644b16e Simplify findGitSlug.
  • b1e6d3b Revert "Remove else statements from if/return blocks."

📊 Changes

2 files changed (+34 additions, -16 deletions)

View changed files

📝 pkg/common/git/git.go (+25 -12)
📝 pkg/runner/run_context.go (+9 -4)

📄 Description

Also, sort runner.Config, model.Githubcontext fields to be clearer.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/2494 **Author:** [@stephenwithav](https://github.com/stephenwithav) **Created:** 10/19/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `code-cleanup` --- ### 📝 Commits (4) - [`d28ad0e`](https://github.com/nektos/act/commit/d28ad0ed41ed96d3207901b8b0d03d73ea99478e) Remove else statements from if/return blocks. - [`618e211`](https://github.com/nektos/act/commit/618e211bdc8cd979a9a9a610f96d2223a410798e) More if/return cleanup. - [`644b16e`](https://github.com/nektos/act/commit/644b16e365ef02cdd366af1f122e22f8b27c05d5) Simplify findGitSlug. - [`b1e6d3b`](https://github.com/nektos/act/commit/b1e6d3b577337dc3e8f6f04a62d54176eafee20a) Revert "Remove else statements from if/return blocks." ### 📊 Changes **2 files changed** (+34 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `pkg/common/git/git.go` (+25 -12) 📝 `pkg/runner/run_context.go` (+9 -4) </details> ### 📄 Description Also, sort runner.Config, model.Githubcontext fields to be clearer. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#2462
No description provided.