Skip to content

Commit

Permalink
chore: remove lint warnings by cleaning up comments and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedch7 committed Dec 19, 2024
1 parent bdf4ada commit fd1fb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion workspaces/backend/api/workspaces_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ var _ = Describe("Workspaces Handler", func() {
err = json.Unmarshal(body, &response)
Expect(err).NotTo(HaveOccurred(), "Error unmarshalling response JSON")

//remove auto generated fields from comparison
// remove auto generated fields from comparison
response.Data.Activity.LastActivity = 0

By("checking if the retrieved workspace matches the expected workspace")
Expand Down
4 changes: 1 addition & 3 deletions workspaces/backend/internal/models/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package models

import (
Expand Down Expand Up @@ -92,9 +93,6 @@ type DataVolumeModel struct {
}

func NewWorkspaceModelFromWorkspace(ctx context.Context, cl client.Client, item *kubefloworgv1beta1.Workspace) WorkspaceModel {
// t := time.Unix(item.Status.Activity.LastActivity, 0)
// formattedLastActivity := t.Format("2006-01-02 15:04:05 MST")

wsk := &kubefloworgv1beta1.WorkspaceKind{}
if err := cl.Get(ctx, client.ObjectKey{Name: item.Spec.Kind}, wsk); err != nil {
return WorkspaceModel{}
Expand Down

0 comments on commit fd1fb92

Please sign in to comment.